New-AzCdnCustomDomain

Creates a custom domain for a CDN endpoint.

Syntax

New-AzCdnCustomDomain
   -HostName <String>
   -CustomDomainName <String>
   -EndpointName <String>
   -ProfileName <String>
   -ResourceGroupName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzCdnCustomDomain
   -HostName <String>
   -CustomDomainName <String>
   -CdnEndpoint <PSEndpoint>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-AzCdnCustomDomain cmdlet creates a custom domain for the Azure Content Delivery Network (CDN) endpoint.

Examples

Example 1

New-AzCdnCustomDomain -ResourceGroupName myresourcegroup -ProfileName mycdnprofile -EndpointName myendpoint -CustomDomainName cdn-example-com -HostName cdn.example.com

HostName                        : cdn.example.com
ValidationData                  :
ResourceState                   : Active
CustomHttpsProvisioningState    : Disabled
CustomHttpsProvisioningSubstate : None
ResourceGroupName               : myresourcegroup
ProfileName                     : mycdnprofile
EndpointName                    : myendpoint
Id                              : /subscriptions/11111111-1111-1111-1111-111111111111/resourcegroups/myresourcegroup/providers
                                  /Microsoft.Cdn/profiles/mycdnprofile/endpoints/myendpoint/customdomains/cdn-example-com
Name                            : cdn-example-com
Type                            : Microsoft.Cdn/profiles/endpoints/customdomains
ProvisioningState               : Succeeded

Parameters

-CdnEndpoint

Specifies the CDN endpoint object to which the custom domain is added.

Type:PSEndpoint
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-CustomDomainName

Specifies the resource name of the custom domain.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EndpointName

Specifies the name of the endpoint.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HostName

Specifies the host name of the custom domain.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProfileName

Specifies the name of the profile.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group to which the custom domain belongs.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSEndpoint

Outputs

PSCustomDomain