az deploymentmanager artifact-source

Manage artifact sources.

Artifact sources can be used for creating service topologies and rollouts.

Commands

az deploymentmanager artifact-source create

Creates an artifact source.

az deploymentmanager artifact-source delete

Deletes an artifact source.

az deploymentmanager artifact-source list

List all artifact sources in a resource group.

az deploymentmanager artifact-source show

Get the details of an artifact source.

az deploymentmanager artifact-source update

Updates an artifact source.

az deploymentmanager artifact-source create

Creates an artifact source.

az deploymentmanager artifact-source create --artifact-source-name
                                            --location
                                            --resource-group
                                            --sas-uri
                                            [--artifact-root]
                                            [--subscription]
                                            [--tags]

Examples

Create a new artifact source.

az deploymentmanager artifact-source create -g rg1 -n contosoServiceArtifactSource -l location --sas-uri https://myStorageAct.blob.azure.com/artifacts?st=2019-04-10T22%3A12Z&se=2019-04-11T09%3A12Z&sp=rl&sv=2018-03-28&sr=c&sig=f6Nx8en4sIJQryYFVVj%2B5BdU7bho96jAgOzLO40Twkg%3D

Required Parameters

--artifact-source-name --name -n

The name of the artifact source.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--sas-uri

The SAS Uri to the Azure Storage container where the artifacts are stored.

Optional Parameters

--artifact-root

The root folder under which the artifacts are to be found. This is the path relative to the Azure storage container provided in --sas-uri.

--subscription

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

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

az deploymentmanager artifact-source delete

Deletes an artifact source.

az deploymentmanager artifact-source delete --artifact-source-name
                                            --resource-group
                                            [--subscription]
                                            [--yes]

Examples

Deletes an artifact source

az deploymentmanager artifact-source delete -g rg1 -n contosoServiceArtifactSource

Required Parameters

--artifact-source-name --name -n

The name of the artifact source.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

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

--yes -y

Do not prompt for confirmation.

az deploymentmanager artifact-source list

List all artifact sources in a resource group.

az deploymentmanager artifact-source list --resource-group
                                          [--query-examples]
                                          [--subscription]

Examples

List artifact sources in the given resource group.

az deploymentmanager artifact-source list -g rg1

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

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

az deploymentmanager artifact-source show

Get the details of an artifact source.

az deploymentmanager artifact-source show --artifact-source-name
                                          --resource-group
                                          [--query-examples]
                                          [--subscription]

Examples

Get an artifact source

az deploymentmanager artifact-source show -g rg1 -n contosoServiceArtifactSource

Required Parameters

--artifact-source-name --name -n

The name of the artifact source.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

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

az deploymentmanager artifact-source update

Updates an artifact source.

az deploymentmanager artifact-source update --artifact-source-name
                                            --resource-group
                                            [--add]
                                            [--artifact-root]
                                            [--force-string]
                                            [--remove]
                                            [--sas-uri]
                                            [--set]
                                            [--subscription]
                                            [--tags]

Examples

Updates an artifact source

az deploymentmanager artifact-source update -g rg1 -n contosoServiceArtifactSource --sas-uri https://dummy.blob.azure.com/updated_sample_sas_uri

Required Parameters

--artifact-source-name --name -n

The name of the artifact source.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--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>.

--artifact-root

The root folder under which the artifacts are to be found. This is the path relative to the Azure storage container provided in --sas-uri.

--force-string

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

--remove

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

--sas-uri

The SAS Uri to the Azure Storage container where the artifacts are stored.

--set

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

--subscription

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

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.