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