Bagikan melalui


Get-AzAksSnapshot

Mendapatkan rekam jepret.

Sintaks

Get-AzAksSnapshot
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAksSnapshot
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAksSnapshot
   -ResourceGroupName <String>
   -ResourceName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAksSnapshot
   -InputObject <IAksIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Deskripsi

Mendapatkan rekam jepret.

Contoh

Contoh 1: Mencantumkan semua rekam jepret AKS

Get-AzAksSnapshot

Location Name      SystemDataCreatedAt   SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
-------- ----      -------------------   -------------------  ----------------------- ------------------------ ------------------------ ----------------------------
eastus   snapshot1 3/30/2023 10:09:35 AM user1@microsoft.com User                    3/30/2023 10:09:35 AM    user1@microsoft.com     User
eastus   snapshot2 3/30/2023 10:09:38 AM user1@microsoft.com User                    3/30/2023 10:09:38 AM    user1@microsoft.com     User
eastus   snapshot3 3/30/2023 10:11:24 AM user1@microsoft.com User                    3/30/2023 10:11:24 AM    user1@microsoft.com     User

Contoh 2: Mencantumkan semua rekam jepret AKS dalam grup sumber daya

Get-AzAksSnapshot -ResourceGroupName mygroup

Location Name      SystemDataCreatedAt   SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
-------- ----      -------------------   -------------------  ----------------------- ------------------------ ------------------------ ----------------------------
eastus   snapshot1 3/30/2023 10:09:35 AM user1@microsoft.com User                    3/30/2023 10:09:35 AM    user1@microsoft.com     User
eastus   snapshot2 3/30/2023 10:09:38 AM user1@microsoft.com User                    3/30/2023 10:09:38 AM    user1@microsoft.com     User

Contoh 3: Mendapatkan rekam jepret AKS

Get-AzAksSnapshot -ResourceGroupName mygroup -ResourceName 'snapshot1'

Location Name      SystemDataCreatedAt   SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
-------- ----      -------------------   -------------------  ----------------------- ------------------------ ------------------------ ----------------------------
eastus   snapshot1 3/30/2023 10:09:35 AM user1@microsoft.com User                    3/30/2023 10:09:35 AM    user1@microsoft.com     User

Contoh 4: Mendapatkan rekam jepret AKS melalui identitas

$pool = Get-AzAksNodePool -ResourceGroupName mygroup -ClusterName mycluster -Name default
$Snapshot = New-AzAksSnapshot -ResourceGroupName mygroup -ResourceName 'snapshot1' -Location eastus -SnapshotType 'NodePool' -CreationDataSourceResourceId $pool.Id
$Snapshot | Get-AzAksSnapshot

Location Name      SystemDataCreatedAt   SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType
-------- ----      -------------------   -------------------  ----------------------- ------------------------ ------------------------ ----------------------------
eastus   snapshot1 3/30/2023 10:09:35 AM user1@microsoft.com User                    3/30/2023 10:09:35 AM    user1@microsoft.com     User

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

-InputObject

Parameter Identitas Untuk membangun, lihat bagian CATATAN untuk properti INPUTOBJECT dan membuat tabel hash.

Jenis:IAksIdentity
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:True
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

-ResourceName

Nama sumber daya kluster terkelola.

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

IAksIdentity

Output

ISnapshot