Skip to content

Instantly share code, notes, and snippets.

@kongou-ae
Created November 28, 2021 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kongou-ae/8ec9aaf7596b97d83b173c3c5e267080 to your computer and use it in GitHub Desktop.
Save kongou-ae/8ec9aaf7596b97d83b173c3c5e267080 to your computer and use it in GitHub Desktop.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.AzureStackHCI/networkInterfaces",
"name": "vmfromtempnic01",
"apiVersion": "2020-11-01-preview",
"location": "eastus",
"extendedLocation": {
"name": "/subscriptions/<MY SUB ID>/resourceGroups/azshci-eu/providers/Microsoft.ExtendedLocation/customLocations/nestedHci",
"type": "CustomLocation"
},
"properties": {
"ipConfigurations": [
{
"properties": {
"subnet": {
"id": "computeswitch"
}
}
}
]
}
},
{
"type": "Microsoft.AzureStackHCI/virtualharddisks",
"name": "dataarm01",
"apiVersion": "2020-11-01-preview",
"location": "eastus",
"extendedLocation": {
"name": "/subscriptions/<MY SUB ID>/resourceGroups/azshci-eu/providers/Microsoft.ExtendedLocation/customLocations/nestedHci",
"type": "CustomLocation"
},
"Properties": {
"dynamic": true,
"diskSizeBytes": 1
}
},
{
"type": "microsoft.azurestackhci/virtualmachines",
"name": "vmfromtempvm01",
"apiVersion": "2020-11-01-preview",
"dependsOn": [
"[resourceId('Microsoft.AzureStackHCI/networkInterfaces', 'vmfromtempnic01')]",
"[resourceId('Microsoft.AzureStackHCI/virtualharddisks', 'dataarm01')]"
],
"location": "eastus",
"extendedLocation": {
"name": "/subscriptions/<MY SUB ID>/resourceGroups/azshci-eu/providers/Microsoft.ExtendedLocation/customLocations/nestedHci",
"type": "CustomLocation"
},
"properties": {
"hardwareProfile": {
"vmSize": "Standard_A2_v2"
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.AzureStackHCI/networkInterfaces', 'vmfromtempnic01')]"
}
]
},
"osProfile": {
"adminUsername": "aimless",
"adminPassword": "<MY PASSWORD>",
"computerName": "vmfromtempvm01"
},
"storageProfile": {
"imageReference": {
"name": "2019-datacenter-core-smalldisk-g2"
},
"dataDisks": [
{
"name": "dataarm01"
}
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment