-
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.
Add serviceArtifactReference property (#21607)
* Add serviceArtifactReference property * Moved the property inside the virtualMachineScaleSet file * Minor change in example Co-authored-by: Avaiyang Garg <[email protected]>
- Loading branch information
1 parent
e96f672
commit 94049e8
Showing
2 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
227 changes: 227 additions & 0 deletions
227
...alMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.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,227 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmScaleSetName": "{vmss-name}", | ||
"api-version": "2022-11-01", | ||
"parameters": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_A1" | ||
}, | ||
"location": "eastus2euap", | ||
"properties": { | ||
"overprovision": true, | ||
"virtualMachineProfile": { | ||
"serviceArtifactReference": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName" | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2022-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"createOption": "FromImage", | ||
"name": "osDisk" | ||
} | ||
}, | ||
"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}" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"upgradePolicy": { | ||
"mode": "Automatic", | ||
"automaticOSUpgradePolicy": { | ||
"enableAutomaticOSUpgrade": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_A1" | ||
}, | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"singlePlacementGroup": true, | ||
"overprovision": true, | ||
"uniqueId": "77b7df9a-32fe-45e3-8911-60ac9c9b9c64", | ||
"virtualMachineProfile": { | ||
"serviceArtifactReference": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName" | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2022-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"name": "osDisk", | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"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": "Automatic", | ||
"automaticOSUpgradePolicy": { | ||
"enableAutomaticOSUpgrade": true | ||
} | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "eastus2euap", | ||
"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_A1" | ||
}, | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"singlePlacementGroup": true, | ||
"overprovision": true, | ||
"uniqueId": "77b7df9a-32fe-45e3-8911-60ac9c9b9c64", | ||
"virtualMachineProfile": { | ||
"serviceArtifactReference": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName" | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2022-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"name": "osDisk", | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"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": "Automatic", | ||
"automaticOSUpgradePolicy": { | ||
"enableAutomaticOSUpgrade": true | ||
} | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "eastus2euap", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" | ||
} | ||
} | ||
} | ||
} |
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