我正在尝试部署新的Storage Spaces Direct集群,但是在部署开始说大约一分钟后,我一直失败:
New-AzureRmResourceGroupDeployment : 10:01:05 AM - Resource Microsoft.Network/networkInterfaces 'XXXXXXXX-1-nic' failed with message '{
"error": {
"code": "InvalidResourceReference",
"message": "Resource /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/resourceGroup-rg/providers/Microsoft.Network/virtualNetworks/virtualNetwork-vnet/subnets/subNet-snet referenced by resource /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
81/resourceGroups/resourceGroup-rg/providers/Microsoft.Network/networkInterfaces/XXXXXXXX-1-nic was not found. Please make sure that
the referenced resource exists, and that both resources are in the same region.",
"details": []
}
}'
这是我正在AzureRM powershell模块中进行的呼叫(由于明显的原因,删除了后勾):
New-AzureRmResourceGroupDeployment
-Name "name"
-ResourceGroupName "resourceGroup-rg"
-TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/301-storage-spaces-direct/azuredeploy.json
-namePrefix "name"
-storageAccountType "Premium_LRS"
-vmSize "Standard_DS3_v2"
-vmCount 2
-vmDiskSize 1023
-vmDiskCount 5
-existingDomainName "domain.com"
-adminUsername "adminUsername"
-adminPassword $secPassword
-existingVirtualNetworkRGName "resourceGroup-rg"
-existingVirtualNetworkName "virtualNetwork-vnet"
-existingSubnetName "subNet-snet"
-sofsName "fs02"
-shareName "data"
-Verbose
有什么明显的我想念的地方吗?此部署不是也应该部署“ nic”吗?