-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customer assigned PlatformFaultDomain on VM creation when it referenc…
…es a VMSS (#11409)
- Loading branch information
1 parent
80724b8
commit 1fe2de7
Showing
3 changed files
with
173 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
165 changes: 165 additions & 0 deletions
165
...1/examples/CreateAVmInAVirtualMachineScaleSetWithCustomerAssignedPlatformFaultDomain.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmName": "myVM", | ||
"api-version": "2020-12-01", | ||
"parameters": { | ||
"location": "westus", | ||
"properties": { | ||
"hardwareProfile": { | ||
"vmSize": "Standard_D1_v2" | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"name": "myVMosdisk", | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaces": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", | ||
"properties": { | ||
"primary": true | ||
} | ||
} | ||
] | ||
}, | ||
"osProfile": { | ||
"adminUsername": "{your-username}", | ||
"computerName": "myVM", | ||
"adminPassword": "{your-password}" | ||
}, | ||
"virtualMachineScaleSet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}" | ||
}, | ||
"platformFaultDomain": 1 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", | ||
"type": "Microsoft.Compute/virtualMachines", | ||
"properties": { | ||
"osProfile": { | ||
"adminUsername": "{your-username}", | ||
"secrets": [], | ||
"computerName": "myVM", | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaces": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", | ||
"properties": { | ||
"primary": true | ||
} | ||
} | ||
] | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"osType": "Windows", | ||
"caching": "ReadWrite", | ||
"createOption": "FromImage", | ||
"name": "myVMosdisk", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
}, | ||
"dataDisks": [] | ||
}, | ||
"vmId": "7cce54f2-ecd3-4ddd-a8d9-50984faa3918", | ||
"hardwareProfile": { | ||
"vmSize": "Standard_D1_v2" | ||
}, | ||
"virtualMachineScaleSet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myExistingFlexVmss" | ||
}, | ||
"platformFaultDomain": 1, | ||
"provisioningState": "Creating" | ||
}, | ||
"name": "myVM", | ||
"location": "westus" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", | ||
"type": "Microsoft.Compute/virtualMachines", | ||
"properties": { | ||
"osProfile": { | ||
"adminUsername": "{your-username}", | ||
"secrets": [], | ||
"computerName": "myVM", | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaces": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", | ||
"properties": { | ||
"primary": true | ||
} | ||
} | ||
] | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"osType": "Windows", | ||
"caching": "ReadWrite", | ||
"createOption": "FromImage", | ||
"name": "myVMosdisk", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
}, | ||
"dataDisks": [] | ||
}, | ||
"vmId": "7cce54f2-ecd3-4ddd-a8d9-50984faa3918", | ||
"hardwareProfile": { | ||
"vmSize": "Standard_D1_v2" | ||
}, | ||
"virtualMachineScaleSet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myExistingFlexVmss" | ||
}, | ||
"platformFaultDomain": 1, | ||
"provisioningState": "Creating" | ||
}, | ||
"name": "myVM", | ||
"location": "westus" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters