Bagikan melalui


Get-AzFleetMember

Dapatkan FleetMember

Sintaks

Get-AzFleetMember
   -FleetName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzFleetMember
   -FleetName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzFleetMember
   -Name <String>
   -FleetInputObject <IFleetIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzFleetMember
   -InputObject <IFleetIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Deskripsi

Dapatkan FleetMember

Contoh

Contoh 1: Dapatkan anggota armada tertentu dengan nama tertentu

Get-AzFleetMember -FleetName testfleet01 -ResourceGroupName K8sFleet-Test -Name testmember

ClusterResourceId            : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/K8sFleet-Test/providers/microsoft.containerservice/managedClusters/TestCluster01
ETag                         : "6205a537-0000-0100-0000-655430760000"
Group                        : 
Id                           : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/K8sFleet-Test/providers/Microsoft.ContainerService/fleets/testfleet01/members/testmember
Name                         : testmember
ProvisioningState            : Succeeded
ResourceGroupName            : K8sFleet-Test
SystemDataCreatedAt          : 11/15/2023 2:43:32 AM
SystemDataCreatedBy          : user1@example.com
SystemDataCreatedByType      : User
SystemDataLastModifiedAt     : 11/15/2023 2:43:32 AM
SystemDataLastModifiedBy     : user1@example.com
SystemDataLastModifiedByType : User
Type                         : Microsoft.ContainerService/fleets/members

Perintah ini mendapatkan anggota armada tertentu dengan nama yang ditentukan.

Contoh 2: Mendapatkan daftar anggota armada dengan armada tertentu

Get-AzFleetMember -FleetName testfleet01 -ResourceGroupName K8sFleet-Test

Name        SystemDataCreatedAt   SystemDataCreatedBy   SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ETag                                   Resource 
                                                                                                                                                                                                      GroupNam 
                                                                                                                                                                                                      e        
----        -------------------   -------------------   ----------------------- ------------------------ ------------------------ ---------------------------- ----                                   -------- 
testmember  11/21/2023 3:13:50 AM user1@example.com     User                    11/21/2023 3:13:50 AM    user1@example.com        User                         "bc061fb4-0000-0100-0000-655c208e0000" K8sFlee… 
testmember2 11/21/2023 4:11:24 AM user1@example.com     User                    11/21/2023 4:11:24 AM    user1@example.com        User                         "be067cf2-0000-0100-0000-655c2e280000" K8sFlee…

Perintah ini mendapatkan daftar anggota armada dengan armada tertentu.

Parameter

-DefaultProfile

Parameter DefaultProfile tidak berfungsi. Gunakan parameter SubscriptionId saat tersedia jika menjalankan cmdlet terhadap langganan yang berbeda.

Jenis:PSObject
Alias:AzureRMContext, AzureCredential
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:False
Terima karakter wildcard:False

-FleetInputObject

Parameter Identitas

Jenis:IFleetIdentity
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-FleetName

Nama sumber daya Armada.

Jenis:String
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:False
Terima karakter wildcard:False

-InputObject

Parameter Identitas

Jenis:IFleetIdentity
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-Name

Nama sumber daya anggota Armada.

Jenis:String
Alias:FleetMemberName
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:False
Terima karakter wildcard:False

-ResourceGroupName

Nama grup sumber daya. Nama tidak peka huruf besar/kecil.

Jenis:String
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:False
Terima karakter wildcard:False

-SubscriptionId

ID langganan target.

Jenis:String[]
Position:Named
Nilai default:(Get-AzContext).Subscription.Id
Diperlukan:False
Terima input alur:False
Terima karakter wildcard:False

Input

IFleetIdentity

Output

IFleetMember