Skip to content

Commit c25dc41

Browse files
authored
Merge pull request #178340 from cynthn/vmapps-updates
Fixing CLI
2 parents 20cac27 + 83d070f commit c25dc41

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

articles/virtual-machines/vm-applications-how-to.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.service: virtual-machines
55
ms.subservice: shared-image-gallery
66
ms.topic: how-to
77
ms.workload: infrastructure
8-
ms.date: 10/27/2021
8+
ms.date: 11/02/2021
99
ms.reviewer: amjads
1010
ms.custom:
1111

@@ -84,36 +84,35 @@ If you have more than one VM application to install, you can set the install ord
8484

8585
### [CLI](#tab/cli)
8686

87+
VM applications requires [Azure CLI](/cli/azure/install-azure-cli) version 2.30.0 or later.
88+
8789
Crate the VM application definition using [az sig gallery-application create](/cli/azure/sig/gallery-application#az_sig_gallery_application_create). In this example we are creating a VM application definition named *myApp* for Linux-based VMs.
8890

8991
```azurecli-interactive
9092
az sig gallery-application create \
91-
--gallery-application-name myApp \
93+
--application-name myApp \
9294
--gallery-name myGallery \
9395
--resource-group myResourceGroup \
9496
--os-type Linux \
9597
--location "East US"
9698
```
9799

98-
Create a VM application version using [az sig gallery-application-version create](/cli/azure/sig/gallery-application#az_sig_gallery_application_version_create). Allowed characters for version are numbers and periods. Numbers must be within the range of a 32-bit integer. Format: *MajorVersion*.*MinorVersion*.*Patch*.
100+
Create a VM application version using [az sig gallery-application version create](/cli/azure/sig/gallery-application/version#az_sig_gallery_application_version_create). Allowed characters for version are numbers and periods. Numbers must be within the range of a 32-bit integer. Format: *MajorVersion*.*MinorVersion*.*Patch*.
99101

100102
Replace the values of the parameters with your own.
101103

102104
```azurecli-interactive
103-
az sig gallery-application-version create \
104-
--gallery-application-version 1.0.0 \
105-
--gallery-application-name myApp \
105+
az sig gallery-application version create \
106+
--version-name 1.0.0 \
107+
--application-name myApp \
106108
--gallery-name myGallery \
107109
--location "East US" \
108110
--resource-group myResourceGroup \
109111
--package-file-link "https://<storage account name>.blob.core.windows.net/<container name>/<filename>" \
110112
--install-command "mv myApp .\myApp\myApp" \
111113
--remove-command "rm .\myApp\myApp" \
112114
--update-command "mv myApp .\myApp\myApp \
113-
--target-regions "westcentralus" "southcentralus=1" \
114115
--default-configuration-file-link "https://<storage account name>.blob.core.windows.net/<container name>/<filename>"\
115-
--publishing-profile-end-of-life-date "01/01/2023" \
116-
--description "Initial version of the Linux application."
117116
```
118117

119118

articles/virtual-machines/vm-applications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
66
ms.subservice: gallery
77
ms.topic: conceptual
88
ms.workload: infrastructure
9-
ms.date: 10/27/2021
9+
ms.date: 11/02/2021
1010
ms.author: cynthn
1111
ms.reviewer: amjads
1212
ms.custom:
@@ -114,7 +114,7 @@ The install/update/remove commands should be written assuming the application pa
114114

115115
## File naming
116116

117-
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 applicaton `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 you 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+
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 you 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`.
118118

119119
For example, if I name my VM application `myApp` when I create it in the Gallery, but it is 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 the it needs to be to run on the VM (like myApp.exe).
120120

0 commit comments

Comments
 (0)