az acr artifact-streaming

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

管理 ACR 中任何存放庫或支援映像的成品串流。

命令

名稱 Description 類型 狀態
az acr artifact-streaming create

為 ACR 中的特定映像建立查閱者串流成品。

核心 預覽​​
az acr artifact-streaming operation

管理 ACR 的串流成品建立作業。

核心 預覽​​
az acr artifact-streaming operation cancel

取消 ACR 的指定串流成品作業。

核心 預覽​​
az acr artifact-streaming operation show

檢查 ACR 中成品串流的作業狀態。

核心 預覽​​
az acr artifact-streaming show

顯示是否已在 Azure Container Registry 的存放庫中啟用成品串流。

核心 預覽​​
az acr artifact-streaming update

為指定登錄下新推送的映像啟用或停用串流成品的自動建立。

核心 預覽​​

az acr artifact-streaming create

預覽

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

為 ACR 中的特定映像建立查閱者串流成品。

az acr artifact-streaming create --image
                                 --name
                                 [--no-wait]
                                 [--password]
                                 [--suffix]
                                 [--username]

範例

在登錄 'myregistry' 中建立 'MyImage' 的串流成品。

az acr artifact-streaming create -n myregistry -t MyImage

必要參數

--image -t

影像的名稱。 可以包含格式為 『name:tag』 的標記,或格式為 『name@digest』 的摘要。

--name -n

容器登錄的名稱。 它應該以小寫指定。 您可以使用 來設定預設登錄名稱 az configure --defaults acr=<registry name>

選擇性參數

--no-wait

請勿等候執行完成,並在佇列執行之後立即返回。

預設值: False
--password -p

用來登入容器登錄的密碼。

--suffix

登錄登入伺服器中的租用戶後綴。 如果您的登錄登入伺服器格式為 『registry-tenant.azurecr.io』,您可以指定 '--suffix tenant'。 適用於您從不同的訂用帳戶存取登錄,或您有權存取映射,但無權管理登錄資源。

--username -u

用來登入容器登錄的用戶名稱。

全域參數
--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 artifact-streaming show

預覽

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

顯示是否已在 Azure Container Registry 的存放庫中啟用成品串流。

az acr artifact-streaming show --name
                               --repository
                               [--password]
                               [--suffix]
                               [--username]

範例

取得存放庫 『MyRepo』 串流狀態。

az acr artifact-streaming show -n myregistry --repository MyRepo

必要參數

--name -n

容器登錄的名稱。 它應該以小寫指定。 您可以使用 來設定預設登錄名稱 az configure --defaults acr=<registry name>

--repository

存放庫的名稱。

選擇性參數

--password -p

用來登入容器登錄的密碼。

--suffix

登錄登入伺服器中的租用戶後綴。 如果您的登錄登入伺服器格式為 『registry-tenant.azurecr.io』,您可以指定 '--suffix tenant'。 適用於您從不同的訂用帳戶存取登錄,或您有權存取映射,但無權管理登錄資源。

--username -u

用來登入容器登錄的用戶名稱。

全域參數
--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 artifact-streaming update

預覽

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

為指定登錄下新推送的映像啟用或停用串流成品的自動建立。

為指定登錄下新推送的映像啟用或停用串流成品的自動建立。 請注意,每當啟用 旗標時,推送至所選登錄的新映射都會啟用自動建立,並將與原始映射建立關聯為參考者成品。

az acr artifact-streaming update --enable-streaming {false, true}
                                 --name
                                 --repository
                                 [--password]
                                 [--suffix]
                                 [--username]

範例

為與登錄 『myregistry』 相關聯的 『MyRepository』 啟用成品串流。

az acr artifact-streaming update -n myregistry --repository MyRepository --enable-streaming True

針對與登錄 'myregistry' 相關聯的 'MyRepository' 停用成品串流。

az acr artifact-streaming update -n myregistry --repository MyRepository --enable-streaming False

必要參數

--enable-streaming

指出是否為存放庫啟用成品串流。

接受的值: false, true
--name -n

容器登錄的名稱。 它應該以小寫指定。 您可以使用 來設定預設登錄名稱 az configure --defaults acr=<registry name>

--repository

存放庫的名稱。

選擇性參數

--password -p

用來登入容器登錄的密碼。

--suffix

登錄登入伺服器中的租用戶後綴。 如果您的登錄登入伺服器格式為 『registry-tenant.azurecr.io』,您可以指定 '--suffix tenant'。 適用於您從不同的訂用帳戶存取登錄,或您有權存取映射,但無權管理登錄資源。

--username -u

用來登入容器登錄的用戶名稱。

全域參數
--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 來取得完整偵錯記錄。