Test-AzureRmCdnCustomDomain

Checks whether a custom domain can be added to an endpoint.

Syntax

Test-AzureRmCdnCustomDomain
    -EndpointName <String>
    -ProfileName <String>
    -ResourceGroupName <String>
    -CustomDomainHostName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]
Test-AzureRmCdnCustomDomain
    -CdnEndpoint <PSEndpoint>
    -CustomDomainHostName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Test-AzureRmCdnCustomDomain cmdlet checks whether a custom domain can be added to an endpoint by validating the CName mapping.

Examples

1:

Required Parameters

-CdnEndpoint

Specifies the endpoint to which you want to add the custom domain.

Type:Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSEndpoint
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-CustomDomainHostName

Specifies the host name of the custom domain.

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

Specifies the name of the endpoint to which you want to add 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.

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

Optional Parameters

-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSEndpoint

Parameter 'CdnEndpoint' accepts value of type 'PSEndpoint' from the pipeline

Outputs

Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSValidateCustomDomainOutput