Share via


az networkcloud cluster baremetalmachinekeyset

注意

此參考是 Azure CLI 網路雲端 擴充功能的一部分 (2.51.0 版或更高版本)。 擴充功能會在您第一次執行 az networkcloud cluster baremetalmachinekeyset 命令時自動安裝。 深入了解擴充功能。

命令群組 'az networkcloud' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

管理叢集的裸機電腦金鑰集。

命令

名稱 Description 類型 狀態
az networkcloud cluster baremetalmachinekeyset create

建立新的裸機計算機金鑰集,或更新所提供叢集的現有裸機機密鑰集。

副檔名 預覽版
az networkcloud cluster baremetalmachinekeyset delete

刪除所提供叢集的裸機計算機金鑰集。

副檔名 預覽版
az networkcloud cluster baremetalmachinekeyset list

列出叢集的裸機計算機金鑰集。

副檔名 預覽版
az networkcloud cluster baremetalmachinekeyset show

取得所提供叢集的裸機計算機金鑰集。

副檔名 預覽版
az networkcloud cluster baremetalmachinekeyset update

更新所提供叢集的裸機計算機密鑰集屬性,或更新與其相關聯的標記。 屬性和標記更新可以獨立完成。

副檔名 預覽版
az networkcloud cluster baremetalmachinekeyset wait

將 CLI 置於等候狀態,直到符合條件為止。

副檔名 預覽版

az networkcloud cluster baremetalmachinekeyset create

預覽

命令群組 『az networkcloud』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

建立新的裸機計算機金鑰集,或更新所提供叢集的現有裸機機密鑰集。

az networkcloud cluster baremetalmachinekeyset create --azure-group-id
                                                      --bare-metal-machine-key-set-name
                                                      --cluster-name
                                                      --expiration
                                                      --extended-location
                                                      --jump-hosts-allowed
                                                      --privilege-level {Standard, Superuser}
                                                      --resource-group
                                                      --user-list
                                                      [--location]
                                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                      [--os-group-name]
                                                      [--tags]

範例

建立或更新裸機計算機金鑰集叢集

az networkcloud cluster baremetalmachinekeyset create --name "bareMetalMachineKeySetName" --extended-location name="/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" type="CustomLocation" --location "location" --azure-group-id "f110271b-XXXX-4163-9b99-214d91660f0e" --expiration "2022-12-31T23:59:59.008Z" --jump-hosts-allowed "192.0.2.1" "192.0.2.5" --os-group-name "standardAccessGroup" --privilege-level "Standard" --user-list "[{description:'User description',azureUserName:userABC,userPrincipalName:'userABC@myorg.com',sshPublicKey:{keyData:'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWtG2RiEGfXs+RK19UmovAJiIVUbT6YaYc/t5SjWU=admin@vm'}}]" --tags key1="myvalue1" key2="myvalue2" --cluster-name "clusterName" --resource-group "resourceGroupName

必要參數

--azure-group-id

清單中所有用戶都必須在 中的 Azure Active Directory 群組對象識別碼,才能授與存取權。 不在群組中的用戶將無法存取。

--bare-metal-machine-key-set-name --name -n

裸機計算機金鑰集的名稱。

--cluster-name

叢集的名稱。

--expiration

此金鑰集中的使用者將會從裸機計算機中移除的日期和時間。

--extended-location

與資源相關聯的叢集擴充位置。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--jump-hosts-allowed

具有管理網路存取權的跳躍主機 IP 位址清單,使用者可以從中允許登入。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--privilege-level

此金鑰集中使用者允許的存取層級。

接受的值: Standard, Superuser
--resource-group -g

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

--user-list

允許使用者的唯一清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

選擇性參數

--location -l

未指定資源所在的地理位置,將會使用資源群組的位置。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--os-group-name

使用者將會在計算機的作業系統上指派給的組名。

--tags

資源標籤。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

全域參數
--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 networkcloud cluster baremetalmachinekeyset delete

預覽

命令群組 『az networkcloud』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除所提供叢集的裸機計算機金鑰集。

az networkcloud cluster baremetalmachinekeyset delete [--bare-metal-machine-key-set-name]
                                                      [--cluster-name]
                                                      [--ids]
                                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                      [--resource-group]
                                                      [--subscription]
                                                      [--yes]

範例

刪除裸機計算機金鑰集的叢集

az networkcloud cluster baremetalmachinekeyset delete --name "bareMetalMachineKeySetName" --cluster-name "clusterName" --resource-group "resourceGroupName

選擇性參數

--bare-metal-machine-key-set-name --name -n

裸機計算機金鑰集的名稱。

--cluster-name

叢集的名稱。

--ids

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

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--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 networkcloud cluster baremetalmachinekeyset list

預覽

命令群組 『az networkcloud』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出叢集的裸機電腦金鑰集。

az networkcloud cluster baremetalmachinekeyset list --cluster-name
                                                    --resource-group
                                                    [--max-items]
                                                    [--next-token]

範例

列出叢集的裸機計算機金鑰集

az networkcloud cluster baremetalmachinekeyset list --cluster-name "clusterName" --resource-group "resourceGroupName"

必要參數

--cluster-name

叢集的名稱。

--resource-group -g

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

選擇性參數

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的自變數中 --next-token 提供令牌值。

--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

全域參數
--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 networkcloud cluster baremetalmachinekeyset show

預覽

命令群組 'az networkcloud' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得所提供叢集的裸機電腦金鑰集。

az networkcloud cluster baremetalmachinekeyset show [--bare-metal-machine-key-set-name]
                                                    [--cluster-name]
                                                    [--ids]
                                                    [--resource-group]
                                                    [--subscription]

範例

取得裸機電腦金鑰集

az networkcloud cluster baremetalmachinekeyset show --name "bareMetalMachineKeySetName" --cluster-name "clusterName" --resource-group "resourceGroupName

選擇性參數

--bare-metal-machine-key-set-name --name -n

裸機電腦金鑰集的名稱。

--cluster-name

叢集的名稱。

--ids

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

--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 networkcloud cluster baremetalmachinekeyset update

預覽

命令群組 'az networkcloud' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

更新所提供叢集的裸機電腦金鑰集屬性,或更新與其相關聯的標記。 屬性和標記更新可以獨立完成。

az networkcloud cluster baremetalmachinekeyset update [--bare-metal-machine-key-set-name]
                                                      [--cluster-name]
                                                      [--expiration]
                                                      [--ids]
                                                      [--jump-hosts-allowed]
                                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                      [--resource-group]
                                                      [--subscription]
                                                      [--tags]
                                                      [--user-list]

範例

修補裸機電腦金鑰集

az networkcloud cluster baremetalmachinekeyset update --name "bareMetalMachineKeySetName" --expiration "2022-12-31T23:59:59.008Z" --jump-hosts-allowed "192.0.2.1" "192.0.2.5" --user-list "[{description:'User description',azureUserName:userABC,userPrincipalName:'userABC@myorg.com',sshPublicKey:{keyData:'ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+/ojNZfpB3af/YDzwQCZzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm'}}]" --tags key1="myvalue1" key2="myvalue2" --cluster-name "clusterName" --resource-group "resourceGroupName"

選擇性參數

--bare-metal-machine-key-set-name --name -n

裸機電腦金鑰集的名稱。

--cluster-name

叢集的名稱。

--expiration

此金鑰集中的使用者將會從裸機電腦中移除的日期和時間。

--ids

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

--jump-hosts-allowed

具有管理網路存取權的跳躍主機 IP 位址清單,使用者可以從中允許登入。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

--subscription

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

--tags

將取代現有資源的 Azure 資源標籤。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--user-list

允許使用者的唯一清單。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

全域參數
--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 networkcloud cluster baremetalmachinekeyset wait

預覽

命令群組 'az networkcloud' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將 CLI 置於等候狀態,直到符合條件為止。

az networkcloud cluster baremetalmachinekeyset wait [--bare-metal-machine-key-set-name]
                                                    [--cluster-name]
                                                    [--created]
                                                    [--custom]
                                                    [--deleted]
                                                    [--exists]
                                                    [--ids]
                                                    [--interval]
                                                    [--resource-group]
                                                    [--subscription]
                                                    [--timeout]
                                                    [--updated]

選擇性參數

--bare-metal-machine-key-set-name --name -n

裸機電腦金鑰集的名稱。

--cluster-name

叢集的名稱。

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自訂 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

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

--interval

輪詢間隔以秒為單位。

預設值: 30
--resource-group -g

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

--subscription

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

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

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