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: articles/virtual-machines/vm-applications-how-to.md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ VM Applications are a resource type in Azure Compute Gallery (formerly known as
23
23
Before you get started, make sure you have the following:
24
24
25
25
26
-
This article assumes you already have an Azure Compute Gallery. If you don't already have a gallery, create one first. To learn more, see [Create a gallery for storing and sharing resources](create-gallery.md)..
26
+
This article assumes you already have an Azure Compute Gallery. If you don't already have a gallery, create one first. To learn more, see [Create a gallery for storing and sharing resources](create-gallery.md).
27
27
28
28
You should have uploaded your application to a container in an [Azure storage account](../storage/common/storage-account-create.md). Your application can be stored in a block or page blob. If you choose to use a page blob, you need to byte align the files before you upload them. Here's a sample that will byte align your file:
29
29
@@ -151,8 +151,8 @@ Set a VM application to an existing VM using [az vm application set](/cli/azure/
To add an application to a VMSS, use [az vmss application set](/cli/azure/vmss/application#az-vmss-application-set):
167
167
168
-
```azurepowershell-interactive
169
-
az vmss application set -g myResourceGroup -n myVmss --app-version-ids /subscriptions/{subId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGallery/applications/myApp/versions/1.0.0
To verify application VM deployment status, use [az vm get-instance-view](/cli/azure/vm/#az-vm-get-instance-view):
@@ -182,14 +188,14 @@ az vm get-instance-view -g myResourceGroup -n myVM --query "instanceView.extensi
182
188
```
183
189
To verify application VMSS deployment status, use [az vmss get-instance-view](/cli/azure/vmss/#az-vmss-get-instance-view):
184
190
185
-
```azurepowershell-interactive
191
+
```azurecli-interactive
186
192
az vmss get-instance-view --ids (az vmss list-instances -g myResourceGroup -n myVmss --query "[*].id" -o tsv) --query "[*].extensions[?name == 'VMAppExtension']"
187
193
```
188
194
> [!NOTE]
189
195
> The above VMSS deployment status command does not list the instance ID with the result. To show the instance ID with the status of the extension in each instance, some additional scripting is required. Refer to the below VMSS CLI example that contains PowerShell syntax:
0 commit comments