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
+47-14Lines changed: 47 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Create and deploy VM application packages (preview)
2
+
title: Create and deploy VM application packages
3
3
description: Learn how to create and deploy VM Applications using an Azure Compute Gallery.
4
4
ms.service: virtual-machines
5
5
ms.subservice: gallery
@@ -11,15 +11,13 @@ ms.custom:
11
11
12
12
---
13
13
14
-
# Create and deploy VM Applications (preview)
14
+
# Create and deploy VM Applications
15
15
16
16
VM Applications are a resource type in Azure Compute Gallery (formerly known as Shared Image Gallery) that simplifies management, sharing and global distribution of applications for your virtual machines.
17
17
18
18
19
19
> [!IMPORTANT]
20
-
> **VM applications in Azure Compute Gallery** are currently in public preview.
21
-
> This preview version is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities.
22
-
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
20
+
> Deploying **VM applications in Azure Compute Gallery** do not currently support using Azure policies.
23
21
24
22
25
23
## Prerequisites
@@ -144,8 +142,36 @@ Set a VM application to an existing VM using [az vm application set](/cli/azure/
az vmss get-instance-view --ids $_.id --query "extensions[?name == 'VMAppExtension']"
170
+
}
171
+
```
172
+
> [!NOTE]
173
+
> The VMSS deployment status contains PowerShell syntax. Refer to the 2nd [vm-extension-delete](/cli/azure/vm/extension#az-vm-extension-delete-examples) example as there is precedence for it.
| order | Optional. The order in which the applications should be deployed. See below. | Validate integer |
345
377
| packageReferenceId | A reference the gallery application version | Valid application version reference |
346
378
| configurationReference | Optional. The full url of a storage blob containing the configuration for this deployment. This will override any value provided for defaultConfiguration earlier. | Valid storage blob reference |
379
+
| treatFailureAsDeploymentFailure | Optional. Provisioning status for VM App. When set to false, provisioning status will always show 'succeeded' regardless of app deployment failure. | True or False
347
380
348
381
The order field may be used to specify dependencies between applications. The rules for order are the following:
Copy file name to clipboardExpand all lines: articles/virtual-machines/vm-applications.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Overview of VM Applications in the Azure Compute Gallery (preview)
2
+
title: Overview of VM Applications in the Azure Compute Gallery
3
3
description: Learn more about VM application packages in an Azure Compute Gallery.
4
4
author: ericd-mst-github
5
5
ms.service: virtual-machines
@@ -13,14 +13,12 @@ ms.custom:
13
13
14
14
---
15
15
16
-
# VM Applications overview (preview)
16
+
# VM Applications overview
17
17
18
18
VM Applications are a resource type in Azure Compute Gallery (formerly known as Shared Image Gallery) that simplifies management, sharing, and global distribution of applications for your virtual machines.
19
19
20
20
> [!IMPORTANT]
21
-
> **VM applications in Azure Compute Gallery** are currently in public preview.
22
-
> This preview version is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities.
23
-
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
21
+
> Deploying **VM applications in Azure Compute Gallery** do not currently support using Azure policies.
24
22
25
23
26
24
While you can create an image of a VM with apps pre-installed, you would need to update your image each time you have application changes. Separating your application installation from your VM images means there’s no need to publish a new image for every line of code change.
@@ -116,11 +114,11 @@ The install/update/remove commands should be written assuming the application pa
116
114
117
115
## File naming
118
116
119
-
During the preview, when the application file gets downloaded to the VM, the file name is the same as the name you use when you create the VM application. For example, if I name my VM application `myApp`, the file that will be downloaded to the VM will also be named `myApp`, regardless of what the file name is used in the storage account. If your VM application also has a configuration file, that file is the name of the application with `_config` appended. If `myApp` has a configuration file, it will be named `myApp_config`.
117
+
When the application file gets downloaded to the VM, the file name is the same as the name you use when you create the VM application. For example, if I name my VM application `myApp`, the file that will be downloaded to the VM will also be named `myApp`, regardless of what the file name is used in the storage account. If your VM application also has a configuration file, that file is the name of the application with `_config` appended. If `myApp` has a configuration file, it will be named `myApp_config`.
120
118
121
119
For example, if I name my VM application `myApp` when I create it in the Gallery, but it's stored as `myApplication.exe` in the storage account, when it gets downloaded to the VM the file name will be `myApp`. My install string should start by renaming the file to be whatever it needs to be to run on the VM (like myApp.exe).
122
120
123
-
The install, update, and remove commands must be written with file naming in mind.
121
+
The install, update, and remove commands must be written with file naming in mind. The `configFileName` is assigned to the config file for the VM and `packageFileName` is the name assigned downloaded package on the VM. For more information regarding these additional VM settings, refer to [UserArtifactSettings](https://docs.microsoft.com/rest/api/compute/gallery-application-versions/create-or-update?tabs=HTTP#userartifactsettings) in our API docs.
124
122
125
123
## Command interpreter
126
124
@@ -249,11 +247,13 @@ Example remove command:
249
247
```
250
248
rmdir /S /Q C:\\myapp
251
249
```
250
+
## Treat failure as deployment failure
252
251
252
+
The VM application extension always returns a *success* regardless of whether any VM app failed while being installed/updated/removed. The VM Application extension will only report the extension status as failure when there's a problem with the extension or the underlying infrastructure. This is triggered by the "treat failure as deployment failure" flag which is set to `$false` by default and can be changed to `$true`. The failure flag can be configured in [PowerShell](/powershell/module/az.compute/add-azvmgalleryapplication#-treatfailureasdeploymentfailure) or [CLI](/cli/azure/vm/application#-treat-deployment-as-failure).
253
253
254
-
## Troubleshooting during preview
254
+
## Troubleshooting VM Applications
255
255
256
-
During the preview, the VM application extension always returns a success regardless of whether any VM app failed while being installed/updated/removed. The VM Application extension will only report the extension status as failure when there's a problem with the extension or the underlying infrastructure. To know whether a particular VM application was successfully added to the VM instance, check the message of the VM Application extension.
256
+
To know whether a particular VM application was successfully added to the VM instance, check the message of the VM Application extension.
257
257
258
258
To learn more about getting the status of VM extensions, see [Virtual machine extensions and features for Linux](extensions/features-linux.md#view-extension-status) and [Virtual machine extensions and features for Windows](extensions/features-windows.md#view-extension-status).
0 commit comments