Get-AzDiskAccess
Mendapatkan properti Akses Disk
Sintaks
Get-AzDiskAccess
[[-ResourceGroupName] <String>]
[[-Name] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzDiskAccess
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzDiskAccess mendapatkan properti Akses Disk
Contoh
Contoh 1: Menggunakan Set Parameter Default
Get-AzDiskAccess -ResourceGroupName 'ResourceGroup01' -Name 'DiskAccess01'
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:02:50 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccess01
Name : DiskAccess01
Type : Microsoft.Compute/diskAccesses
Tags : {}
Perintah ini mendapatkan properti sumber daya Akses Disk bernama 'DiskAccess01' di grup sumber daya 'ResourceGroup01'.
Contoh 2: Get-AzDiskAccess menurut Grup Sumber Daya
Get-AzDiskAccess -ResourceGroupName 'ResourceGroup01'
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:02:50 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccess01
Name : DiskAccess01
Type : Microsoft.Compute/diskAccesses
Tags : {}
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:05:19 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccess02
Name : DiskAccess02
Type : Microsoft.Compute/diskAccesses
Tags : {}
Perintah ini mendapatkan properti semua akses disk di grup sumber daya 'ResourceGroup01'.
Contoh 3: Mendapatkan semua Akses Disk
Get-AzDiskAccess
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:02:50 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccess01
Name : DiskAccess01
Type : Microsoft.Compute/diskAccesses
Tags : {}
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:05:19 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup21/providers/Microsoft.Compute/diskAccesses/DiskAccess02
Name : DiskAccess02
Type : Microsoft.Compute/diskAccesses
Tags : {}
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:05:19 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup08/providers/Microsoft.Compute/diskAccesses/DiskAccess03
Name : DiskAccess03
Type : Microsoft.Compute/diskAccesses
Tags : {}
Perintah ini mendapatkan properti semua akses disk di bawah langganan.
Contoh 4: Mendapatkan semua Akses Disk menggunakan Karakter Wildcard
Get-AzDiskAccess -Name DiskAccessMicrosoft*
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:02:50 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccessMicrosoftAzure
Name : DiskAccessMicrosoftAzure
Type : Microsoft.Compute/diskAccesses
Tags : {}
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:05:19 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccessMicrosoftTeams
Name : DiskAccessMicrosoftTeams
Type : Microsoft.Compute/diskAccesses
Tags : {}
Perintah ini mendapatkan properti semua akses disk di bawah nama langganan yang dimulai dengan 'DiskAccessMicrosoft'.
Contoh 5: Dapatkan Akses Disk menggunakan ResourceId.
Get-AzDiskAccess -ResourceId '/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccess01'
PrivateEndpointConnections : {}
ProvisioningState : Succeeded
TimeCreated : 8/13/2020 7:02:50 PM
Location : northcentralus
Id : /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compute/diskAccesses/DiskAccess01
Name : DiskAccess01
Type : Microsoft.Compute/diskAccesses
Tags : {}
Perintah ini mendapatkan properti Akses Disk dengan ResourceId yang diberikan.
Parameter
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Jenis: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Name
Menentukan nama akses disk.
Jenis: | String |
Alias: | diskAccessName |
Position: | 1 |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | True |
Terima karakter wildcard: | True |
-ResourceGroupName
Menentukan nama grup sumber daya.
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | True |
Terima karakter wildcard: | True |
-ResourceId
ID sumber daya untuk akses disk Anda.
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |