共用方式為


az acr agentpool

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

使用 Azure 容器登錄管理私人工作代理程式集區。

命令

名稱 Description 類型 狀態
az acr agentpool create

建立 Azure Container Registry 的代理程式集區。

Core Preview
az acr agentpool delete

刪除代理程式集區。

Core Preview
az acr agentpool list

列出 Azure Container Registry 的代理程式集區。

Core Preview
az acr agentpool show

取得 Azure Container Registry 指定之代理程式集區的屬性。

Core Preview
az acr agentpool update

更新 Azure Container Registry 的代理程式集區。

Core Preview

az acr agentpool create

預覽

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

建立 Azure Container Registry 的代理程式集區。

az acr agentpool create --name
                        --registry
                        [--count]
                        [--no-wait]
                        [--resource-group]
                        [--subnet-id]
                        [--tier]

範例

建立與登錄 'myregistry' 相關聯的代理程式集區 'MyAgentName'。

az acr agentpool create -n MyAgentName -r myregistry

建立具有 2 個代理程式計數的代理程式集區 『MyAgentName』。

az acr agentpool create -n MyAgentName -r myregistry --count 2

建立與 VNET 子網中登錄 'myregistry' 相關聯的代理程式集區 'MyAgentName'。

az acr agentpool create -n MyAgentName -r myregistry --subnet-id /subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroupName>/providers/Microsoft.ClassicNetwork/virtualNetworks/<myNetwork>/subnets/<subNet>

必要參數

--name -n

代理程式集區的名稱。

--registry -r

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--count -c

代理程式集區的計數。

屬性
預設值: 1
--no-wait

請勿等候代理程式集區完成動作,並在佇列要求之後立即返回。

屬性
預設值: False
--resource-group -g

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

--subnet-id

代理程式電腦的虛擬網路子網資源標識碼。

--tier

設定代理程式集區將執行的 VM。 有效值為:S1(2 個 vCPU、3 GiB RAM)、S2(4 個 vCPU、8 GiB RAM)、S3(8 個 vCPU、16 GiB RAM)或 I6(64 個 vCPU、216 GiB RAM、隔離式)。

屬性
預設值: S1
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az acr agentpool delete

預覽

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

刪除代理程式集區。

az acr agentpool delete --name
                        --registry
                        [--no-wait]
                        [--resource-group]
                        [--yes]

範例

刪除代理程式集區 『MyAgentName』。

az acr agentpool delete -n MyAgentName -r myregistry

必要參數

--name -n

代理程式集區的名稱。

--registry -r

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--no-wait

請勿等候代理程式集區完成動作,並在佇列要求之後立即返回。

屬性
預設值: False
--resource-group -g

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

--yes -y

請勿提示確認。

屬性
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az acr agentpool list

預覽

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

列出 Azure Container Registry 的代理程式集區。

az acr agentpool list --registry
                      [--resource-group]

範例

列出代理程式集區,並在數據表中顯示結果。

az acr agentpool list -r myregistry -o table

必要參數

--registry -r

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az acr agentpool show

預覽

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

取得 Azure Container Registry 指定之代理程式集區的屬性。

az acr agentpool show --name
                      --registry
                      [--queue-count]
                      [--resource-group]

範例

取得代理程式集區的屬性,並在數據表中顯示結果。

az acr agentpool show -n MyAgentName -r myregistry -o table

必要參數

--name -n

代理程式集區的名稱。

--registry -r

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--queue-count

只取得佇列計數。

屬性
預設值: False
--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az acr agentpool update

預覽

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

更新 Azure Container Registry 的代理程式集區。

az acr agentpool update --name
                        --registry
                        [--count]
                        [--no-wait]
                        [--resource-group]

範例

將代理程式集區 『MyAgentName』 計數更新為 5

az acr agentpool update -n MyAgentName -r myregistry --count 5

必要參數

--name -n

代理程式集區的名稱。

--registry -r

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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--count -c

代理程式集區的計數。

--no-wait

請勿等候代理程式集區完成動作,並在佇列要求之後立即返回。

屬性
預設值: False
--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False