Modifier

Partager via


Get-AzCdnProfile

Gets an CDN profile with the specified profile name under the specified subscription and resource group.

Syntax

Get-AzCdnProfile
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzCdnProfile
   [-SubscriptionId <String[]>]
   -ResourceGroupName <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzCdnProfile
   [-SubscriptionId <String[]>]
   -Name <String>
   -ResourceGroupName <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzCdnProfile
   -InputObject <ICdnIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Gets an CDN profile with the specified profile name under the specified subscription and resource group.

Examples

Example 1: List AzureCDN profiles under the subscription

Get-AzCdnProfile

Location Name             Kind ResourceGroupName
-------- ----             ---- -----------------
Global   p-oln142         cdn  testps-rg-godj4q
Global   cdn001           cdn  testps-rg-da16jm
Global   cdn002           cdn  testps-rg-da16jm

List AzureCDN profiles under the subscription

Example 2: List AzureCDN profiles under the resource group

Get-AzCdnProfile -ResourceGroupName testps-rg-da16jm

Location Name   Kind ResourceGroupName
-------- ----   ---- -----------------
Global   cdn001 cdn  testps-rg-da16jm
Global   cdn002 cdn  testps-rg-da16jm

List AzureCDN profiles under the resource group

Example 3: Get an AzureCDN profile under the resource group

Get-AzCdnProfile -ResourceGroupName testps-rg-da16jm -Name cdn001

Location Name   Kind ResourceGroupName
-------- ----   ---- -----------------
Global   cdn001 cdn  testps-rg-da16jm

Get an AzureCDN profile under the resource group

Example 4: Get an AzureCDN profile under the resource group via identity

New-AzCdnProfile -ResourceGroupName testps-rg-da16jm -Name cdn001 -SkuName Standard_Microsoft -Location Global | Get-AzCdnProfile

Location Name   Kind ResourceGroupName
-------- ----   ---- -----------------
Global   cdn001 cdn  testps-rg-da16jm

Get an AzureCDN profile under the resource group via identity

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:ICdnIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Name of the CDN profile which is unique within the resource group.

Type:String
Aliases:ProfileName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Name of the Resource group within the Azure subscription.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Azure Subscription ID.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ICdnIdentity

Outputs

IProfile