共用方式為


az footprint profile

備註

此參考是 Azure CLI 的 使用量 延伸模組的一部分(2.11.0 版或更高版本)。 擴充功能會在您第一次執行 az footprint profile 命令時自動安裝。 深入瞭解擴充功能

此命令群組是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

管理使用量配置檔的命令。

命令

名稱 Description 類型 狀態
az footprint profile create

使用指定的屬性建立或更新使用量配置檔。

擴充套件 實驗性的
az footprint profile delete

刪除現有的使用量配置檔。

擴充套件 實驗性的
az footprint profile list

擷取訂用帳戶下所有使用量配置檔的相關信息。

擴充套件 實驗性的
az footprint profile show

擷取單一使用量配置檔的相關信息。

擴充套件 實驗性的
az footprint profile update

更新現有的使用量配置檔資源。

擴充套件 實驗性的

az footprint profile create

實驗

命令群組「使用量配置檔」是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

使用指定的屬性建立或更新使用量配置檔。

az footprint profile create --measurement-count
                            --name
                            --resource-group
                            --start-delay-ms
                            [--description]
                            [--location]
                            [--reporting-endpoints]
                            [--sample-rate-cold]
                            [--tags]

範例

建立或更新使用量配置檔。

az footprint profile create --location "westus2" --measurement-count 3 --start-delay-ms 5000 --tags key1="value1" key2="value2" --name "fpProfile1" --resource-group "rgName"

必要參數

--measurement-count

要執行的度量數目。

--name --profile-name -n

使用量配置檔資源的名稱。

--resource-group -g

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

--start-delay-ms

客戶端應該等候的延遲以毫秒為單位,直到開始執行測量為止。

選擇性參數

--description

使用量配置檔的描述。

--location -l

位置。 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。

--reporting-endpoints

要上傳度量的端點。

--sample-rate-cold

冷路徑測量記憶體的預設取樣百分比。

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。

全域參數
--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 footprint profile delete

實驗

命令群組「使用量配置檔」是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除現有的使用量配置檔。

az footprint profile delete [--ids]
                            [--name]
                            [--resource-group]
                            [--subscription]
                            [--yes]

範例

刪除使用量配置檔。

az footprint profile delete --name "fpProfile1" --resource-group "rgName"

選擇性參數

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--name --profile-name -n

使用量配置檔資源的名稱。

--resource-group -g

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

--subscription

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

--yes -y

請勿提示確認。

預設值: False
全域參數
--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 footprint profile list

實驗

命令群組「使用量配置檔」是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

擷取訂用帳戶下所有使用量配置檔的相關信息。

az footprint profile list [--resource-group]

範例

列出資源群組下的所有使用量配置檔。

az footprint profile list --resource-group "rgName"

選擇性參數

--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 footprint profile show

實驗

命令群組「使用量配置檔」是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

擷取單一使用量配置檔的相關信息。

az footprint profile show [--ids]
                          [--name]
                          [--resource-group]
                          [--subscription]

範例

取得使用量配置檔的詳細數據。

az footprint profile show --name "fpProfile1" --resource-group "rgName"

選擇性參數

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--name --profile-name -n

使用量配置檔資源的名稱。

--resource-group -g

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

--subscription

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

全域參數
--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 footprint profile update

實驗

命令群組「使用量配置檔」是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

更新現有的使用量配置檔資源。

az footprint profile update [--ids]
                            [--name]
                            [--resource-group]
                            [--subscription]
                            [--tags]

範例

更新使用量配置檔。

az footprint profile update --tags key1="value1" key2="value2" --name "fpProfile1" --resource-group "rgName"

選擇性參數

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

--name --profile-name -n

使用量配置檔資源的名稱。

--resource-group -g

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

--subscription

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

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。

全域參數
--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。