Created
November 28, 2021 14:34
-
-
Save kongou-ae/8ec9aaf7596b97d83b173c3c5e267080 to your computer and use it in GitHub Desktop.
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
{ | |
"$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