az portal dashboard

注意

此參考是 Azure CLI 入口網站 延伸模組的一部分 (2.3.1 版或更高版本)。 擴充功能會在您第一次執行 az portal dashboard 命令時自動安裝。 深入了解擴充功能。

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

管理入口網站儀表板。

命令

名稱 Description 類型 狀態
az portal dashboard create

建立或更新儀表板。

擴充 實驗性
az portal dashboard delete

刪除儀表板。

擴充 實驗性
az portal dashboard import

從 JSON 檔案匯入儀表板。

擴充 實驗性
az portal dashboard list

列出訂用帳戶或資源群組內的儀表板。

擴充 實驗性
az portal dashboard show

取得單一儀表板的詳細資料。

擴充 實驗性
az portal dashboard update

更新現有的儀表板。

擴充 實驗性

az portal dashboard create

實驗

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

建立或更新儀表板。

az portal dashboard create --input-path
                           --name
                           --resource-group
                           [--location]
                           [--tags]

範例

建立或更新儀表板

az portal dashboard create --location "eastus" --name "testDashboard" \
--resource-group "testRG" --input-path "/src/json/properties.json" \
--tags aKey=aValue anotherKey=anotherValue

必要參數

--input-path

儀表板屬性 JSON 檔案的路徑。

--name -n

儀表板的名稱。

--resource-group -g

資源群組的名稱。

選擇性參數

--location -l

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

--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 portal dashboard delete

實驗

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

刪除儀表板。

az portal dashboard delete --name
                           --resource-group
                           [--yes]

範例

刪除儀表板

az portal dashboard delete --name "testDashboard" --resource-group "testRG"

必要參數

--name -n

儀表板的名稱。

--resource-group -g

資源群組的名稱。

選擇性參數

--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 portal dashboard import

實驗

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

從 JSON 檔案匯入儀表板。

az portal dashboard import --input-path
                           --resource-group
                           [--name]

範例

匯入儀表板

az portal dashboard import --name "testDashboard" --resource-group "testRG" \
--input-path "/src/json/dashboard.json"

必要參數

--input-path

儀表板 json 檔案的路徑。

--resource-group -g

資源群組的名稱。

選擇性參數

--name -n

儀表板的名稱。

全域參數
--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 portal dashboard list

實驗

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

列出訂用帳戶或資源群組內的儀表板。

az portal dashboard list [--resource-group]

範例

列出 resourceGroup 中的所有儀表板

az portal dashboard list --resource-group "testRG"

列出訂用帳戶中的所有儀表板

az portal dashboard list

選擇性參數

--resource-group -g

資源群組的名稱。

全域參數
--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 portal dashboard show

實驗

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

取得單一儀表板的詳細資料。

az portal dashboard show --name
                         --resource-group

範例

取得儀表板

az portal dashboard show --name "testDashboard" --resource-group "testRG"

必要參數

--name -n

儀表板的名稱。

--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 portal dashboard update

實驗

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

更新現有的儀表板。

az portal dashboard update --input-path
                           --name
                           --resource-group

範例

更新儀表板

az portal dashboard update --name "testDashboard" --resource-group "testRG" \
--input-path "/src/json/properties.json"

必要參數

--input-path

儀表板屬性 JSON 檔案的路徑。

--name -n

儀表板的名稱。

--resource-group -g

資源群組的名稱。

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