Share via


az acr import-pipeline

Note

This reference is part of the acrtransfer extension for the Azure CLI (version 2.0.67 or higher). The extension will automatically install the first time you run an az acr import-pipeline command. Learn more about extensions.

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage ACR import pipelines.

Commands

Name Description Type Status
az acr import-pipeline create

Create an import pipeline.

Extension Preview
az acr import-pipeline delete

Delete an import pipeline.

Extension Preview
az acr import-pipeline list

List import pipelines on a Container Registry.

Extension Preview
az acr import-pipeline show

Show an import pipeline in detail.

Extension Preview

az acr import-pipeline create

Preview

Command group 'acr import-pipeline' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Create an import pipeline.

az acr import-pipeline create --name
                              --registry
                              --resource-group
                              --secret-uri
                              --storage-container-uri
                              [--assign-identity]
                              [--options]
                              [--source-trigger-enabled {false, true}]

Examples

Create an import pipeline.

az acr import-pipeline create --resource-group $MyRG --registry $MyReg --name $MyPipeline --secret-uri https://$MyKV.vault.azure.net/secrets/$MySecret --storage-container-uri https://$MyStorage.blob.core.windows.net/$MyContainer

Create an import pipeline with a user-assigned identity, all available options, and source trigger disabled.

az acr import-pipeline create --resource-group $MyRG --registry $MyReg --name $MyPipeline --secret-uri https://$MyKV.vault.azure.net/secrets/$MySecret --storage-container-uri https://$MyStorage.blob.core.windows.net/$MyContainer --options DeleteSourceBlobOnSuccess OverwriteTags ContinueOnErrors --assign-identity /subscriptions/$MySubID/resourceGroups/$MyRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$MyIdentity --source-trigger-enabled False

Required Parameters

--name -n

Name of the import pipeline.

--registry -r

Name of registry.

--resource-group -g

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

--secret-uri -s

Keyvault secret URI containing a valid SAS token to the associated storage account of the form https://$MyKeyvault.vault.azure.net/secrets/$MySecret. Note that the URI may be different outside of AzureCloud.

--storage-container-uri -c

Storage account container URI of the source or target storage account container of the form https://$MyStorageAccount.blob.core.windows.net/$MyContainer. Note that the URI may be different outside of AzureCloud.

Optional Parameters

--assign-identity -i

User assigned identity resource ID of the form /subscriptions/$MySubID/resourceGroups/$MyRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$MyIdentity.

--options -z

Space-separated list of options. May only contain the following options: DeleteSourceBlobOnSuccess,OverwriteTags,ContinueOnErrors,DisableSourceTrigger.

--source-trigger-enabled -e

Boolean parameter that determines whether source trigger is enabled on the pipeline. Must be either True or False. True by default.

Accepted values: false, true
Default value: True
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.

az acr import-pipeline delete

Preview

Command group 'acr import-pipeline' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Delete an import pipeline.

az acr import-pipeline delete --name
                              --registry
                              --resource-group

Examples

Delete an import pipeline.

az acr import-pipeline delete --resource-group $MyRG --registry $MyReg --name $MyPipeline

Required Parameters

--name -n

Name of the import pipeline.

--registry -r

Name of registry.

--resource-group -g

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

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.

az acr import-pipeline list

Preview

Command group 'acr import-pipeline' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List import pipelines on a Container Registry.

az acr import-pipeline list --registry
                            --resource-group

Examples

List import pipelines on a container registry

az acr import-pipeline list --resource-group $MyRG --registry $MyReg

Required Parameters

--registry -r

Name of registry.

--resource-group -g

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

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.

az acr import-pipeline show

Preview

Command group 'acr import-pipeline' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show an import pipeline in detail.

az acr import-pipeline show --name
                            --registry
                            --resource-group

Examples

Show a specific import pipeline in detail.

az acr import-pipeline show --resource-group $MyRG --registry $MyReg --name $MyPipeline

Required Parameters

--name -n

Name of the import pipeline.

--registry -r

Name of registry.

--resource-group -g

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

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.