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
Copy file name to clipboardExpand all lines: azure-local/manage/virtual-machine-image-azure-compute-gallery.md
+72-73Lines changed: 72 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,19 +40,19 @@ To transfer your Azure Compute Gallery image to be an Azure Local compatible ima
40
40
az disk grant-access --resource-group $resourceGroupName --name $diskName --duration-in-seconds $sasExpiryDuration --query [accessSas] -o tsv
41
41
```
42
42
43
-
## Set some parameters
43
+
## Set parameters
44
44
45
-
### Set some parameters
45
+
Before creating an Azure Local VM image, you'll first need to set some parameters:
46
46
47
47
1. Set your subscription, resource group, location, path to the image in local share, and OS type for the image. Replace the parameters in `< >` with the appropriate values.
48
48
49
-
```azurecli
50
-
$subscription = "<Subscription ID>"
51
-
$resource_group = "<Resource group>"
52
-
$location = "<Location for your Azure Local>"
53
-
$osType = "<OS of source image>"
54
-
$imageName = "<VM image name>"
55
-
```
49
+
```azurecli
50
+
$subscription = "<Subscription ID>"
51
+
$resource_group = "<Resource group>"
52
+
$location = "<Location for your Azure Local>"
53
+
$osType = "<OS of source image>"
54
+
$imageName = "<VM image name>"
55
+
```
56
56
57
57
The parameters are described in the following table:
58
58
@@ -66,13 +66,13 @@ The parameters are described in the following table:
@@ -99,66 +99,65 @@ To create an Azure Local VM image:
99
99
The image deployment takes a few minutes to complete. The time taken to download the image depends on the size of the image and the network bandwidth available for the download.
100
100
101
101
Here's a sample output:
102
-
103
-
```
104
-
PS > $customLocationID=(az customlocation show --resource-group $resource_group --name "mylocal-cl" --query id -o tsv)
0 commit comments