-
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 CVM settings for version 2021-11-01 (#16622)
* Added CVM settings * added examples * Add CMK examples * fixed typo * fixed file name * prettier check * removed a br * changed to VMDiskSecurityProfile * type as object
- Loading branch information
1 parent
be9341a
commit cedd64f
Showing
4 changed files
with
658 additions
and
2 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
245 changes: 245 additions & 0 deletions
245
...ute/stable/2021-11-01/examples/compute/CreateAScaleSetWithSecurityTypeConfidentialVM.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,245 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmScaleSetName": "{vmss-name}", | ||
"api-version": "2021-11-01", | ||
"parameters": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_DC2as_v5" | ||
}, | ||
"properties": { | ||
"overprovision": true, | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "windows-cvm", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "17763.2183.2109130127", | ||
"offer": "2019-datacenter-cvm" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadOnly", | ||
"managedDisk": { | ||
"storageAccountType": "StandardSSD_LRS", | ||
"securityProfile": { | ||
"securityEncryptionType": "VMGuestStateOnly" | ||
} | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"securityProfile": { | ||
"uefiSettings": { | ||
"secureBootEnabled": true, | ||
"vTpmEnabled": true | ||
}, | ||
"securityType": "ConfidentialVM" | ||
}, | ||
"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": "Manual" | ||
} | ||
}, | ||
"location": "westus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_DC2as_v5" | ||
}, | ||
"name": "{vmss-name}", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"properties": { | ||
"singlePlacementGroup": true, | ||
"overprovision": true, | ||
"uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "windows-cvm", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "17763.2183.2109130127", | ||
"offer": "2019-datacenter-cvm" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadOnly", | ||
"managedDisk": { | ||
"storageAccountType": "StandardSSD_LRS", | ||
"securityProfile": { | ||
"securityEncryptionType": "VMGuestStateOnly" | ||
} | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"securityProfile": { | ||
"uefiSettings": { | ||
"secureBootEnabled": true, | ||
"vTpmEnabled": true | ||
}, | ||
"securityType": "ConfidentialVM" | ||
}, | ||
"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" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_DC2as_v5" | ||
}, | ||
"name": "{vmss-name}", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"properties": { | ||
"singlePlacementGroup": true, | ||
"overprovision": true, | ||
"uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "windows-cvm", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "17763.2183.2109130127", | ||
"offer": "2019-datacenter-cvm" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadOnly", | ||
"managedDisk": { | ||
"storageAccountType": "StandardSSD_LRS", | ||
"securityProfile": { | ||
"securityEncryptionType": "VMGuestStateOnly" | ||
} | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"securityProfile": { | ||
"uefiSettings": { | ||
"secureBootEnabled": true, | ||
"vTpmEnabled": true | ||
}, | ||
"securityType": "ConfidentialVM" | ||
}, | ||
"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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.