az baremetalstorageinstance
Note
This reference is part of the baremetal-infrastructure extension for the Azure CLI (version 2.57.0 or higher). The extension will automatically install the first time you run an az baremetalstorageinstance command. Learn more about extensions.
處理記憶體 Azure 裸機實例的作業。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az baremetalstorageinstance create |
為指定的訂用帳戶、資源群組和實例名稱建立 Azure 裸機記憶體實例。 |
Extension | GA |
az baremetalstorageinstance delete |
刪除指定訂用帳戶、資源群組和實例名稱的 Azure 裸機記憶體實例。 |
Extension | GA |
az baremetalstorageinstance list |
列出指定訂用帳戶中的 AzureBareMetalStorage 實例清單。 作業會傳回每個 Azure 裸機實例的各種屬性。 |
Extension | GA |
az baremetalstorageinstance show |
取得指定訂用帳戶、資源群組和實例名稱的 Azure 裸機記憶體實例。 |
Extension | GA |
az baremetalstorageinstance update |
更新指定訂用帳戶、資源群組和實例名稱的 Azure 裸機記憶體實例。 |
Extension | GA |
az baremetalstorageinstance create
為指定的訂用帳戶、資源群組和實例名稱建立 Azure 裸機記憶體實例。
az baremetalstorageinstance create --instance-name
--resource-group
[--azure-bare-metal-storage-instance-size --sku]
[--billing-mode]
[--bmsi-id --instance-id]
[--generation]
[--hardware-type]
[--identity]
[--location]
[--offering-type]
[--provisioning-state {Accepted, Canceled, Creating, Deleting, Failed, Migrating, Succeeded, Updating}]
[--storage-type]
[--tags]
[--workload-type]
範例
建立記憶體資源
az baremetalstorageinstance create -g myResourceGroup -n myAzureBareMetalStorageInstance --location westus2 --sku S72
必要參數
Azure 裸機記憶體實例的名稱,也稱為 ResourceName。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
已布建的 SKU 類型。
屬性 | 值 |
---|---|
Parameter group: | StorageBillingProperties Arguments |
記憶體實例的計費模式。
屬性 | 值 |
---|---|
Parameter group: | StorageBillingProperties Arguments |
指定 AzureBareMetaStorageInstance 唯一標識符。
屬性 | 值 |
---|---|
Parameter group: | Properties Arguments |
記憶體實例的種類。
屬性 | 值 |
---|---|
Parameter group: | StorageProperties Arguments |
記憶體實例的硬體類型。
屬性 | 值 |
---|---|
Parameter group: | StorageProperties Arguments |
如果已設定,則為 Azure 裸機記憶體實例的身分識別。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
屬性 | 值 |
---|---|
Parameter group: | RequestBodyParameters Arguments |
未指定資源所在的地理位置,將會使用資源群組的位置。
屬性 | 值 |
---|---|
Parameter group: | RequestBodyParameters Arguments |
要布建資源的供應項目類型。
屬性 | 值 |
---|---|
Parameter group: | StorageProperties Arguments |
AzureBareMetalStorageInstance 布建的狀態。
屬性 | 值 |
---|---|
Parameter group: | StorageProperties Arguments |
接受的值: | Accepted, Canceled, Creating, Deleting, Failed, Migrating, Succeeded, Updating |
要布建資源的記憶體通訊協定。
屬性 | 值 |
---|---|
Parameter group: | StorageProperties Arguments |
Resource tags. 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
屬性 | 值 |
---|---|
Parameter group: | RequestBodyParameters Arguments |
要布建資源的工作負載。
屬性 | 值 |
---|---|
Parameter group: | StorageProperties Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az baremetalstorageinstance delete
刪除指定訂用帳戶、資源群組和實例名稱的 Azure 裸機記憶體實例。
az baremetalstorageinstance delete [--ids]
[--instance-name]
[--resource-group]
[--subscription]
[--yes]
範例
刪除記憶體資源
az baremetalstorageinstance delete -g myResourceGroup -n myAzureBareMetalStorageInstance
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Azure 裸機記憶體實例的名稱,也稱為 ResourceName。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
請勿提示確認。
屬性 | 值 |
---|---|
預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az baremetalstorageinstance list
列出指定訂用帳戶中的 AzureBareMetalStorage 實例清單。 作業會傳回每個 Azure 裸機實例的各種屬性。
az baremetalstorageinstance list [--max-items]
[--next-token]
[--resource-group]
範例
列出訂用帳戶中的所有 AzureBareMetalStorage 實例
az baremetalstorageinstance list
列出訂用帳戶和資源群組中的所有 AzureBareMetalStorage 實例
az baremetalstorageinstance list -g myResourceGroup
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token
自變數中提供令牌值。
屬性 | 值 |
---|---|
Parameter group: | Pagination Arguments |
標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。
屬性 | 值 |
---|---|
Parameter group: | Pagination Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az baremetalstorageinstance show
取得指定訂用帳戶、資源群組和實例名稱的 Azure 裸機記憶體實例。
az baremetalstorageinstance show [--ids]
[--instance-name]
[--resource-group]
[--subscription]
範例
取得 AzureBareMetalStorage 實例
az baremetalstorageinstance show -g myResourceGroup -n myAzureBareMetalStorageInstance
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Azure 裸機記憶體實例的名稱,也稱為 ResourceName。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az baremetalstorageinstance update
更新指定訂用帳戶、資源群組和實例名稱的 Azure 裸機記憶體實例。
az baremetalstorageinstance update [--add]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--identity]
[--ids]
[--instance-name]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
範例
若要將索引鍵/值組新增至特定 BareMetalStorage 實例的 [標記] 字段:
az baremetalstorageinstance update --resource-group $RESOURCE_GROUP --instance-name $BM_INSTANCE_NAME --identity "{type:SystemAssigned}"
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
藉由指定路徑和索引鍵值組,將物件加入物件清單。 範例: --add property.listProperty <key=value, string or JSON string>
.
屬性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
使用 'set' 或 'add' 時,請保留字串常值,而不是嘗試轉換成 JSON。
屬性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
如果已設定,則為 Azure 裸機記憶體實例的身分識別。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
屬性 | 值 |
---|---|
Parameter group: | RequestBodyParameters Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Azure 裸機記憶體實例的名稱,也稱為 ResourceName。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
從清單中移除屬性或專案。 範例: --remove property.list <indexToRemove>
或 --remove propertyToRemove
。
屬性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
指定要設定的屬性路徑和值,以更新物件。 範例: --set property1.property2=<value>
.
屬性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Resource tags. 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
屬性 | 值 |
---|---|
Parameter group: | RequestBodyParameters Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |