Share via


az acr import-pipeline

注意

此參考是 Azure CLI 的 acrtransfer 延伸模組的一部分 (2.0.67 版或更高版本)。 擴充功能會在您第一次執行 az acr import-pipeline 命令時自動安裝。 深入了解擴充功能。

此命令群組處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

管理 ACR 匯入管線。

命令

名稱 Description 類型 狀態
az acr import-pipeline create

建立匯入管線。

擴充 預覽版
az acr import-pipeline delete

刪除匯入管線。

擴充 預覽版
az acr import-pipeline list

列出 Container Registry 上的匯入管線。

擴充 預覽版
az acr import-pipeline show

詳細顯示匯入管線。

擴充 預覽版

az acr import-pipeline create

預覽

命令群組 'acr import-pipeline' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

建立匯入管線。

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

範例

建立匯入管線。

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

建立具有使用者指派身分識別、所有可用選項和已停用來源觸發程式的匯入管線。

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

必要參數

--name -n

匯入管線的名稱。

--registry -r

登錄的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--secret-uri -s

Keyvault 秘密 URI,其中包含 HTTPs://$MyKeyvault.vault.azure.net/secrets/$MySecret 形式相關聯儲存體帳戶的有效 SAS 權杖。 請注意,URI 在 AzureCloud 之外可能不同。

--storage-container-uri -c

儲存體 HTTPs://$My儲存體Account.blob.core.windows.net/$MyContainer 格式來源或目標儲存體帳戶容器的帳戶容器 URI。 請注意,URI 在 AzureCloud 之外可能不同。

選擇性參數

--assign-identity -i

使用者指派的身分識別資源識別碼,格式為 /subscriptions/$MySubID/resourceGroups/$MyRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/$MyIdentity。

--options -z

以空格分隔的選項清單。 只能包含下列選項:DeleteSourceBlobOnSuccess、OverwriteTags、ContinueOnErrors、DisableSourceTrigger。

--source-trigger-enabled -e

布林參數,決定是否在管線上啟用來源觸發程式。 必須是 True 或 False。 True 預設為 True。

接受的值: false, true
預設值: True
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az acr import-pipeline delete

預覽

命令群組 'acr import-pipeline' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除匯入管線。

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

範例

刪除匯入管線。

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

必要參數

--name -n

匯入管線的名稱。

--registry -r

登錄的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az acr import-pipeline list

預覽

命令群組 'acr import-pipeline' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出 Container Registry 上的匯入管線。

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

範例

列出容器登錄上的匯入管線

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

必要參數

--registry -r

登錄的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az acr import-pipeline show

預覽

命令群組 'acr import-pipeline' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

詳細顯示匯入管線。

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

範例

詳細顯示特定的匯入管線。

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

必要參數

--name -n

匯入管線的名稱。

--registry -r

登錄的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。