Share via


az 球形目錄

管理目錄。

操作 描述
az 球型目錄建立 建立目錄。
az 球形目錄刪除 刪除型錄。
az 球型目錄清單 列出資源群組或訂閱中的可用目錄。
az 球形目錄顯示 顯示目錄的詳細數據。
az 球型目錄下載錯誤報告 列出或下載所選取目錄的可用錯誤報告。

命令

az 球型目錄建立

建立目錄。

必要參數

參數 描述
--name -n 要下載的憑證。 指定名稱。 如果未提供任何名稱,系統會下載使用中的憑證。 來自:az 球形 ca 的值
--resource-group -r Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>設定預設群組。 來自: az 群組清單的值。

例子

在資源群組 MyResourceGroup 中建立新的型錄 MyCatalog。

az sphere catalog create --resource-group MyResourceGroup --name MyCatalog

az 球形目錄刪除

刪除型錄。

必要參數

參數 描述
--catalog -c 執行此作業的 Azure 球體目錄。 指定 Azure 球體目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>設定預設的 Azure 球體目錄。 來自: az 球型目錄清單的值。
--resource-group -r Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>設定預設群組。 來自: az 群組清單的值。

例子

使用資源群組和目錄名稱刪除目錄。

az sphere catalog delete --resource-group MyResourceGroup --catalog MyCatalog

az 球型目錄清單

列出資源群組或訂閱中的可用目錄。

必要參數

參數 描述
--所有 列出訂閱中所有資源群組中的所有目錄。
--resource-group -r Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>設定預設群組。 來自: az 群組清單的值。

例子

列出資源群組中的所有目錄。

az sphere catalog list --resource-group MyResourceGroup

列出訂閱中所有資源群組中的所有目錄。

az sphere catalog list --all

az 球形目錄顯示

顯示目錄的詳細數據。

必要參數

參數 描述
--catalog -c 執行此作業的 Azure 球體目錄。 指定 Azure 球體目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>設定預設的 Azure 球體目錄。 來自: az 球型目錄清單的值。
--resource-group -r Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>設定預設群組。 來自: az 群組清單的值。

例子

使用資源群組和目錄名稱顯示目錄的詳細數據。

az sphere catalog show --resource-group MyResourceGroup --catalog MyCatalog

az 球型目錄下載錯誤報告

列出或下載所選取目錄的可用錯誤報告。

必要參數

參數 描述
--catalog -c 執行此作業的 Azure 球體目錄。 指定 Azure 球體目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>設定預設的 Azure 球體目錄。 來自: az 球型目錄清單的值。
--resource-group -r Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>設定預設群組。 來自: az 群組清單的值。

選用參數

參數 描述
--output-file -of 要建立之新 csv 檔案的路徑,包含錯誤報告數據。 您可以提供相對或絕對路徑。 如果未設定此參數,檔案會以預設名稱儲存在目前資料夾中。 (路徑) 。

例子

使用資源群組和目錄名稱在 csv 檔案中下載錯誤報告。

az sphere catalog download-error-report --resource-group MyResourceGroup --catalog MyCatalog --output-file myErrorReport.csv