You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$customLocationID = (az customlocation show --resource-group $resource_group --name "<custom_location_name_for_Azure_Stack_HCI_cluster>" --query id -o tsv)
59
59
$location = "<Location for your Azure Stack HCI cluster>"
60
60
$osType = "<OS of source image>"
61
61
```
@@ -65,7 +65,9 @@ Follow these steps to create a VM image using the Azure CLI.
1. Select a custom location to deploy your VM image. The custom location should correspond to the custom location for your Azure Stack HCI cluster. Get the custom location ID for your Azure Stack HCI cluster. Run the following command:
88
+
1. Set additional parameters that specify the intended VM image you would like to create. You will need to include the offer, publisher, SKU, and version for the marketplace image. Replace the parameters in \< \> with the appropriate values:
85
89
86
90
```azurecli
87
-
$customLocationID=(az customlocation show --resource-group $resource_group --name "<custom_location_name_for_Azure_Stack_HCI_cluster>" --query id -o tsv)
91
+
$publisher = "<Publisher name>"
92
+
$offer = "<OS offer>"
93
+
$sku = "<Image SKU>"
88
94
```
89
95
90
-
1. Create the VM image starting with a specified marketplace image. Make sure to specify the offer, publisher, SKU, and version for the marketplace image. Use the following table to find the available marketplace images and their attribute values:
96
+
Use the following table to find the available marketplace images and their attribute values:
91
97
92
98
| Name | Publisher | Offer | SKU |
93
99
|------|-----------|-------|------|
@@ -103,81 +109,86 @@ Follow these steps to create a VM image using the Azure CLI.
103
109
| Windows Server 2019 | microsoftwindowsserver | windowsserver | 2019-datacenter-gensecond<br>2019-datacenter-core-g2 |
104
110
| SQL Server 2022 Enterprise on Windows Server 2022 | microsoftsqlserver | sql2022-ws2022 | enterprise-gen2<br>standard-gen2 |
105
111
112
+
If you wanted to create a Windows Server 2019 Datacenter image, you would have the following parameters:
In this example, the storage path was specified using the `--storage-path-id` flag and that ensured that the workload data (including the VM, VM image, non-OS data disk) is placed in the specified storage path.
114
-
115
-
If the flag is not specified, the workload data is automatically placed in a high availability storage path.
121
+
1. Create the VM image starting with a specified marketplace image:
116
122
117
-
The image deployment takes a few minutes to complete. The time taken to download the image depends on the size of the Marketplace image and the network bandwidth available for the download.
For more information on this CLI command, see [az stack-hci-vm image](/cli/azure/stack-hci-vm/image).
191
+
181
192
# [Azure portal](#tab/azureportal)
182
193
183
194
Follow these steps to create a VM image using the Azure portal. In the Azure portal of your Azure Stack HCI cluster resource, take the following steps:
0 commit comments