-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added vm size properties for vm scale set (#16723)
* Added vm size properties * Added get examples * Added example for vm size properties * Added example for vm size properties Co-authored-by: Theodore Chang <[email protected]>
- Loading branch information
1 parent
cedd64f
commit 59a6f77
Showing
4 changed files
with
542 additions
and
0 deletions.
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
246 changes: 246 additions & 0 deletions
246
...mpute/stable/2021-11-01/examples/compute/CreateOrUpdateAScaleSetWithVMSizeProperties.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,246 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmScaleSetName": "{vmss-name}", | ||
"api-version": "2021-11-01", | ||
"parameters": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_D1_v2" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"overprovision": true, | ||
"upgradePolicy": { | ||
"mode": "Manual" | ||
}, | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"userData": "RXhhbXBsZSBVc2VyRGF0YQ==", | ||
"hardwareProfile": { | ||
"vmSizeProperties": { | ||
"vCPUsAvailable": 1, | ||
"vCPUsPerCore": 1 | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"adminPassword": "{your-password}" | ||
}, | ||
"networkProfile": { | ||
"networkInterfaceConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"primary": true, | ||
"enableIPForwarding": true, | ||
"ipConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"subnet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_D1_v2" | ||
}, | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"singlePlacementGroup": true, | ||
"overprovision": true, | ||
"uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"hardwareProfile": { | ||
"vmSizeProperties": { | ||
"vCPUsAvailable": 1, | ||
"vCPUsPerCore": 1 | ||
} | ||
}, | ||
"diagnosticsProfile": { | ||
"bootDiagnostics": { | ||
"storageUri": "http://nsgdiagnostic.blob.core.windows.net", | ||
"enabled": true | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"secrets": [], | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaceConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"dnsSettings": { | ||
"dnsServers": [] | ||
}, | ||
"primary": true, | ||
"enableIPForwarding": true, | ||
"ipConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"subnet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" | ||
}, | ||
"privateIPAddressVersion": "IPv4" | ||
} | ||
} | ||
], | ||
"enableAcceleratedNetworking": false | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"upgradePolicy": { | ||
"mode": "Manual" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "westus", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_D1_v2" | ||
}, | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"singlePlacementGroup": true, | ||
"overprovision": true, | ||
"uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"hardwareProfile": { | ||
"vmSizeProperties": { | ||
"vCPUsAvailable": 1, | ||
"vCPUsPerCore": 1 | ||
} | ||
}, | ||
"diagnosticsProfile": { | ||
"bootDiagnostics": { | ||
"storageUri": "http://nsgdiagnostic.blob.core.windows.net", | ||
"enabled": true | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"secrets": [], | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaceConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"dnsSettings": { | ||
"dnsServers": [] | ||
}, | ||
"primary": true, | ||
"enableIPForwarding": true, | ||
"ipConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"subnet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" | ||
}, | ||
"privateIPAddressVersion": "IPv4" | ||
} | ||
} | ||
], | ||
"enableAcceleratedNetworking": false | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"upgradePolicy": { | ||
"mode": "Manual" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "westus", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.