Get-AzNetworkCloudKubernetesCluster
取得所提供 Kubernetes 叢集的屬性。
語法
Get-AzNetworkCloudKubernetesCluster
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzNetworkCloudKubernetesCluster
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzNetworkCloudKubernetesCluster
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzNetworkCloudKubernetesCluster
-InputObject <INetworkCloudIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得所提供 Kubernetes 叢集的屬性。
範例
範例 1:依訂用帳戶列出 Kubernetes 叢集
Get-AzNetworkCloudKubernetesCluster -SubscriptionId subscriptionId
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
location kubernetesCluster1 06/30/2023 20:39:44 <Identity> User 08/03/2023 20:26:35 <Identity> Application resourceGroupName
location kubernetesCluster2 07/11/2023 02:49:35 <Identity> User 08/03/2023 20:26:32 <Identity> Application resourceGroupName
location kubernetesCluster3 07/15/2023 22:04:00 <Identity> Application 07/15/2023 22:18:48 <Identity> Application resourceGroupName
location kubernetesCluster4 07/25/2023 21:00:31 <Identity> User 08/03/2023 20:26:37 <Identity> Application resourceGroupName
此命令會列出訂用帳戶下的所有 Kubernetes 叢集。
範例 2:取得 Kubernetes 叢集
Get-AzNetworkCloudKubernetesCluster -KubernetesClusterName kubernetesClusterName -SubscriptionId subscriptionId -ResourceGroupName resourceGroupName
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
location default 08/09/2023 20:23:17 <Identity> User 08/09/2023 20:44:27 <Identity> Application resourceGroupName
此命令會依名稱取得 Kubernetes 叢集。
範例 3:依資源群組列出 Kubernetes 叢集
Get-AzNetworkCloudKubernetesCluster -ResourceGroupName resourceGroupName -SubscriptionId subscriptionId
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------------
location default 08/09/2023 20:23:17 <Identity> User 08/09/2023 20:44:27 <Identity> Application resourceGroupName
此命令會列出資源群組中的所有 Kubernetes 叢集。
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | INetworkCloudIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
Kubernetes 叢集的名稱。
類型: | String |
別名: | KubernetesClusterName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
目標訂用帳戶的標識碼。 此值必須是 UUID。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
輸出
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應