Share via


az gallery service-artifact

Note

This reference is part of the gallery-service-artifact extension for the Azure CLI (version 2.57.0 or higher). The extension will automatically install the first time you run an az gallery service-artifact command. Learn more about extensions.

Azure Compute Gallery Service Artifact.

Commands

Name Description Type Status
az gallery service-artifact create

Create a Service Artifact under a gallery.

Extension GA
az gallery service-artifact get

Get a Service Artifact under a gallery.

Extension GA
az gallery service-artifact list

List a list of Service Artifacts in a gallery.

Extension GA
az gallery service-artifact update

Update a Service Artifact under a gallery.

Extension GA
az gallery service-artifact wait

Place the CLI in a waiting state until a condition is met.

Extension GA

Create a Service Artifact under a gallery.

az gallery service-artifact create --gallery-name
                                   --location
                                   --name
                                   --resource-group
                                   --target-locations
                                   --vm-artifacts-profiles
                                   [--description]
                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--tags]
--gallery-name

The name of the Gallery under which the Service Artifact is created.

--location

The Azure region where Service Artifact is created.

--name --service-artifact-name -n

The name of the Gallery Service Artifact.

--resource-group -g

The name of the resource group. The name is case insensitive.

--target-locations

List of target locations for the Service Artifact Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--vm-artifacts-profiles

VM Artifact Profile Definition Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--description

Description of the Service Artifact.

--no-wait

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--tags

Resource tags Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Get a Service Artifact under a gallery.

az gallery service-artifact get [--expand {latestVersion}]
                                [--gallery-name]
                                [--ids]
                                [--name]
                                [--resource-group]
                                [--subscription]
--expand

The expand expression to apply on the operation. Passing 'latestVersion' as value would return image reference from each region of the Service Artifact.

Accepted values: latestVersion
--gallery-name

The name of the Gallery under which the Service Artifact is created.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name --service-artifact-name -n

The name of the Gallery Service Artifact.

--resource-group -g

The name of the resource group. The name is case insensitive.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

List a list of Service Artifacts in a gallery.

az gallery service-artifact list --gallery-name
                                 --resource-group
--gallery-name

The name of the Gallery under which the Service Artifact is created.

--resource-group -g

The name of the resource group. The name is case insensitive.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Update a Service Artifact under a gallery.

az gallery service-artifact update [--add]
                                   [--description]
                                   [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--gallery-name]
                                   [--ids]
                                   [--location]
                                   [--name]
                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--remove]
                                   [--resource-group]
                                   [--set]
                                   [--subscription]
                                   [--tags]
                                   [--target-locations]
                                   [--vm-artifacts-profiles]
--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--description

Description of the Service Artifact.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--gallery-name

The name of the Gallery under which the Service Artifact is created.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--location

The Azure region where Service Artifact is created.

--name --service-artifact-name -n

The name of the Gallery Service Artifact.

--no-wait

Do not wait for the long-running operation to finish.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--remove

Remove a property or an element from a list. Example: --remove property.list <indexToRemove> OR --remove propertyToRemove.

--resource-group -g

The name of the resource group. The name is case insensitive.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

Resource tags Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--target-locations

List of target locations for the Service Artifact Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--vm-artifacts-profiles

VM Artifact Profile Definition Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Place the CLI in a waiting state until a condition is met.

az gallery service-artifact wait [--created]
                                 [--custom]
                                 [--deleted]
                                 [--exists]
                                 [--expand {latestVersion}]
                                 [--gallery-name]
                                 [--ids]
                                 [--interval]
                                 [--name]
                                 [--resource-group]
                                 [--subscription]
                                 [--timeout]
                                 [--updated]
--created

Wait until created with 'provisioningState' at 'Succeeded'.

Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

Default value: False
--exists

Wait until the resource exists.

Default value: False
--expand

The expand expression to apply on the operation. Passing 'latestVersion' as value would return image reference from each region of the Service Artifact.

Accepted values: latestVersion
--gallery-name

The name of the Gallery under which the Service Artifact is created.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--interval

Polling interval in seconds.

Default value: 30
--name --service-artifact-name -n

The name of the Gallery Service Artifact.

--resource-group -g

The name of the resource group. The name is case insensitive.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--timeout

Maximum wait in seconds.

Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.