az fleet identitybindingprofile
Note
此參考資料是Azure CLIfleet擴充套件(版本2.61.0或更高版本)的一部分。 這個擴充功能會在你第一次執行 az fleet identitybindingprofile 指令時自動安裝。 深入了解擴充功能。
此命令群組處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
管理身份綁定設定檔的指令。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az fleet identitybindingprofile apply |
將身份綁定設定檔套用於選定的車隊成員。 |
Extension | Preview |
| az fleet identitybindingprofile create |
建立或更新身份綁定檔案。 |
Extension | Preview |
| az fleet identitybindingprofile delete |
刪除一個身份綁定的設定檔。 必須先從所有成員身上移除身份綁定,才能刪除該個人檔案。 |
Extension | Preview |
| az fleet identitybindingprofile list |
列出所有艦隊的身份綁定設定檔。 |
Extension | Preview |
| az fleet identitybindingprofile list-members |
列出車隊成員以建立身份綁定檔案。 |
Extension | Preview |
| az fleet identitybindingprofile show |
取得身份綁定檔案。 |
Extension | Preview |
| az fleet identitybindingprofile wait |
等待身份綁定設定檔達到所需狀態。 |
Extension | Preview |
az fleet identitybindingprofile apply
指揮組「fleet identitybindingprofile」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
將身份綁定設定檔套用於選定的車隊成員。
az fleet identitybindingprofile apply --fleet-name
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--what-if]
範例
套用身份綁定設定檔。
az fleet identitybindingprofile apply -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile
預覽會做哪些變更,但不必實際應用。
az fleet identitybindingprofile apply -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile --what-if --output table
必要參數
指定車隊名稱。
請指定身份綁定設定檔的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示套用操作會帶來哪些變更,而不必實際執行。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az fleet identitybindingprofile create
指揮組「fleet identitybindingprofile」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
建立或更新身份綁定檔案。
在現有設定檔執行 Create 會取代整個設定檔。 任何被省略的可選參數都會被清除,包括 -allowed-subjects-from-file,它會移除現有的主體限制。 通過你想保留的每個設定。
az fleet identitybindingprofile create --fleet-name
--managed-identity-resource-id
--name
--resource-group
[--acquire-policy-token]
[--allowed-subjects-from-file]
[--change-reference]
[--member-selector --selector]
[--no-wait]
範例
為成員建立一個標示為 env=production 的身份綁定設定檔。
az fleet identitybindingprofile create -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile \
--selector "env=production" \
--managed-identity-resource-id "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MyIdentity"
建立一個僅限特定主題的身份綁定檔案。
az fleet identitybindingprofile create -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile \
--selector "env=production" \
--managed-identity-resource-id "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MyIdentity" \
--allowed-subjects-from-file allowed-subjects.json
必要參數
指定車隊名稱。
要使用的受控識別的資源識別碼。
請指定身份綁定設定檔的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
路徑指向一個 JSON 檔案,裡面有授權使用此身份綁定進行令牌交換的主體清單。
檔案必須包含一個 JSON 陣列(最多 100 個項目)。 每個項目都有必備的「namespaceSelector」和一個可選的「serviceAccountSelector」,每個都是一個支援「matchLabels」(「key=value」字串陣列)和/或「matchExpressions」的 Kubernetes 標籤選擇器。 使用內建的「kubernetes.io/metadata.name」標籤來依名稱鎖定特定命名空間。 若省略授權,授權會退回到成員叢集的 ClusterRole/ClusterRoleBinding 評估,且已設定在現有設定檔中的主體會被移除。
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
類似 Kubernetes 的標籤選擇器,用於選擇艦隊成員,例如 'env=production'。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az fleet identitybindingprofile delete
指揮組「fleet identitybindingprofile」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
刪除一個身份綁定的設定檔。 必須先從所有成員身上移除身份綁定,才能刪除該個人檔案。
az fleet identitybindingprofile delete --fleet-name
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--yes]
範例
刪除一個身份綁定的設定檔。
az fleet identitybindingprofile delete -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile
必要參數
指定車隊名稱。
請指定身份綁定設定檔的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
不提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az fleet identitybindingprofile list
指揮組「fleet identitybindingprofile」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
列出所有艦隊的身份綁定設定檔。
az fleet identitybindingprofile list --fleet-name
--resource-group
範例
列出車隊的身份綁定設定檔。
az fleet identitybindingprofile list -g MyFleetResourceGroup -f MyFleetName
必要參數
指定車隊名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az fleet identitybindingprofile list-members
指揮組「fleet identitybindingprofile」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
列出車隊成員以建立身份綁定檔案。
沒有 --selector 時,則列出該設定檔目前套用的成員。 搭配 --selector,列出符合該設定檔標籤選擇器的成員(即下一個申請者的候選人)。
az fleet identitybindingprofile list-members --fleet-name
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--selector]
範例
列出該個人資料目前適用的成員。
az fleet identitybindingprofile list-members -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile
列出符合該檔案選擇器的成員。
az fleet identitybindingprofile list-members -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile --selector
必要參數
指定車隊名稱。
請指定身份綁定設定檔的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
請依據個人資料的標籤選擇器(即套用後會匹配的成員)來篩選,而非目前套用的成員。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az fleet identitybindingprofile show
指揮組「fleet identitybindingprofile」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
取得身份綁定檔案。
az fleet identitybindingprofile show --fleet-name
--name
--resource-group
範例
請展示身份綁定檔案的詳細資料。
az fleet identitybindingprofile show -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile
必要參數
指定車隊名稱。
請指定身份綁定設定檔的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az fleet identitybindingprofile wait
指揮組「fleet identitybindingprofile」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
等待身份綁定設定檔達到所需狀態。
az fleet identitybindingprofile wait --fleet-name
--identity-binding-profile-name --name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
範例
等身份綁定設定檔套用完成。
az fleet identitybindingprofile wait -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile --custom "properties.provisioningState=='Succeeded'"
等待身份綁定設定檔建立。
az fleet identitybindingprofile wait -g MyFleetResourceGroup -f MyFleetName -n MyIdentityBindingProfile --created
必要參數
指定車隊名稱。
請指定身份綁定設定檔的名稱。
資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
請等候在 'Succeeded' 使用 'provisioningState' 建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
等到刪除為止。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等候資源存在。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
輪詢間隔以秒為單位。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 30 |
以秒為單位的等候上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 3600 |
等到 provisioningState 更新為 'Succeeded'。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |