Get-AzProximityPlacementGroup
Resource(s) voor nabijheidsplaatsingsgroep ophalen of vermelden.
Syntaxis
Get-AzProximityPlacementGroup
[[-ResourceGroupName] <String>]
[[-Name] <String>]
[-ColocationStatus]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzProximityPlacementGroup
[-ColocationStatus]
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Met deze cmdlet worden resource(s) voor nabijheidsplaatsingsgroepen weergegeven of weergegeven.
Voorbeelden
Voorbeeld 1
Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName
ResourceGroupName : rg0
ProximityPlacementGroupType : Standard
VirtualMachines : {}
VirtualMachineScaleSets : {}
AvailabilitySets : {}
Id : /subscriptions/5393f919-a68a-43d0-9063-4b2bda6bffdf/resourceGroups/rg0/providers/Microsoft.Compute/proximityPlacementGroups/ppg0
Name : ppg0
Type : Microsoft.Compute/proximityPlacementGroups
Location : westcentralus
Tags : {[key1, val1]}
Met deze opdracht wordt de nabijheidsplaatsingsgroep ophaalt
Voorbeeld 2
Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName
ResourceGroupName Name Location Type
----------------- ---- -------- ----
rg0 ppg0 westcentralus Standard
rg0 ppg1 westcentralus Standard
Met deze opdracht worden alle nabijheidsplaatsingsgroepen onder de opgegeven resourcegroep weergegeven.
Voorbeeld 3
Get-AzProximityPlacementGroup
ResourceGroupName Name Location Type
----------------- ---- -------- ----
rg0 ppg0 westcentralus Standard
rg0 ppg1 westcentralus Standard
rg1 ppg2 centralus Standard
Met deze opdracht worden alle nabijheidsplaatsingsgroepen onder het abonnement weergegeven.
Parameters
-ColocationStatus
Toont de colocatiestatus van een resource in de nabijheidsplaatsingsgroep.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Name
De naam van de nabijheidsplaatsingsgroep.
Type: | String |
Aliassen: | ProximityPlacementGroupName |
Position: | 1 |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | True |
-ResourceGroupName
De naam van de resourcegroep.
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | True |
-ResourceId
De resource-id voor de nabijheidsplaatsingsgroep.
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Azure PowerShell