Get-AzPublicIpPrefix
Gets a public IP prefix
Syntax
Get-AzPublicIpPrefix
[-Name <String>]
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzPublicIpPrefix
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzPublicIpPrefix cmdlet gets one or more public IP prefixes in a resource group.
Examples
Example 1
Get-AzPublicIpPrefix -ResourceGroupName myRg -Name myPublicIpPrefix1
Name : myPublicIpPrefix1
ResourceGroupName : myRg
Location : westus
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Mic
rosoft.Network/publicIPPrefixes/myPublicIpPrefix1
Etag : W/"00000000-0000-0000-0000-000000000000"
ResourceGuid : 00000000-0000-0000-0000-000000000000
ProvisioningState : Succeeded
Tags :
PublicIpAddressVersion : IPv4
PrefixLength : 28
IPPrefix : xx.xx.xx.xx/xx
IdleTimeoutInMinutes :
Zones : {}
Sku : {
"Name": "Standard",
"Tier":"Regional"
}
IpTags : []
PublicIpAddresses : []
This command gets a public IP prefix resource with myPublicIpPrefix1 in resource group myRg
Example 2
Get-AzPublicIpPrefix -Name myPublicIpPrefix*
Name : myPublicIpPrefix1
ResourceGroupName : myRg
Location : westus
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Mic
rosoft.Network/publicIPPrefixes/myPublicIpPrefix1
Etag : W/"00000000-0000-0000-0000-000000000000"
ResourceGuid : 00000000-0000-0000-0000-000000000000
ProvisioningState : Succeeded
Tags :
PublicIpAddressVersion : IPv4
PrefixLength : 28
IPPrefix : xx.xx.xx.xx/xx
IdleTimeoutInMinutes :
Zones : {}
Sku : {
"Name": "Standard",
"Tier": "Regional"
}
IpTags : []
PublicIpAddresses : []
This command gets all public IP prefix resources that start with myPublicIpPrefix.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The resource name.
Type: | String |
Aliases: | ResourceName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-ResourceGroupName
The resource group name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-ResourceId
The resource Id.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Related Links
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.