az vm extension image
尋找訂用帳戶和區域的可用 VM 擴充功能。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az vm extension image list |
列出可用擴充功能的相關信息。 |
Core | GA |
| az vm extension image list-names |
列出可用延伸模組的名稱。 |
Core | GA |
| az vm extension image list-versions |
列出可用擴充功能的版本。 |
Core | GA |
| az vm extension image show |
顯示延伸模組的資訊。 |
Core | GA |
az vm extension image list
列出可用擴充功能的相關信息。
az vm extension image list [--latest]
[--location]
[--name]
[--publisher]
[--version]
範例
列出擴充功能的唯一發行者。
az vm extension image list --query "[].publisher" -o tsv | sort -u
在名稱中尋找具有 「Docker」 的擴充功能。
az vm extension image list --query "[].name" -o tsv | sort -u | grep Docker
列出發行者名稱開頭為 「Microsoft.Azure.App」 的延伸模組名稱。
az vm extension image list --query \
"[?starts_with(publisher, 'Microsoft.Azure.App')].publisher" \
-o tsv | sort -u | xargs -I{} az vm extension image list-names --publisher {} -l westus
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
僅顯示最新版本。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
影像位置。
映射名稱。
映像發行者名稱。
擴充功能版本。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az vm extension image list-names
列出可用延伸模組的名稱。
az vm extension image list-names [--ids]
[--location]
[--publisher --publisher-name]
[--subscription]
範例
依發行者和位置尋找 Docker 擴充功能。
az vm extension image list-names --publisher Microsoft.Azure.Extensions -l westus --query "[?starts_with(name, 'Docker')]"
依發行者和位置尋找 CustomScript 延伸模組。
az vm extension image list-names --publisher Microsoft.Azure.Extensions -l westus --query "[?starts_with(name, 'Custom')]"
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
映像發行者名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az vm extension image list-versions
列出可用擴充功能的版本。
az vm extension image list-versions [--filter]
[--ids]
[--location]
[--name --type]
[--orderby]
[--publisher --publisher-name]
[--subscription]
[--top]
範例
尋找 Docker 擴充功能的可用版本。
az vm extension image list-versions --publisher Microsoft.Azure.Extensions -l westus -n DockerExtension -o table
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
要套用至作業的篩選條件。 預設值為 None。
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
延伸模組的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
$orderby odata 查詢選項。
映像發行者名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
$top odata 查詢選項。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az vm extension image show
顯示延伸模組的資訊。
az vm extension image show [--ids]
[--location]
[--name --type]
[--publisher --publisher-name]
[--subscription]
[--version]
範例
顯示 CustomScript 擴充功能 2.0.2 版。
az vm extension image show -l westus -n CustomScript --publisher Microsoft.Azure.Extensions --version 2.0.2
顯示最新版的 Docker 擴充功能。
az vm extension image list-versions --publisher Microsoft.Azure.Extensions -l westus -n DockerExtension --query "[].name" -o tsv | sort | tail -n 1
az vm extension image show -l westus --publisher Microsoft.Azure.Extensions -n DockerExtension --version LatestVersion
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
延伸模組的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
映像發行者名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
擴充功能版本。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |