Skip to content

Latest commit

 

History

History
194 lines (147 loc) · 4.26 KB

New-AzureRmCdnCustomDomain.md

File metadata and controls

194 lines (147 loc) · 4.26 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.Commands.Cdn.dll-Help.xml
AzureRM.Cdn
7060D3D7-B397-447E-88E3-B6F0D094770D
2.0.0

New-AzureRmCdnCustomDomain

SYNOPSIS

Creates a custom domain for a CDN endpoint.

SYNTAX

ByFieldsParameterSet (Default)

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

ByObjectParameterSet

New-AzureRmCdnCustomDomain -HostName <String> -CustomDomainName <String> -CdnEndpoint <PSEndpoint>
 [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

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

EXAMPLES

PARAMETERS

-CdnEndpoint

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

Type: Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSEndpoint
Parameter Sets: ByObjectParameterSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-CustomDomainName

Specifies the resource name of the custom domain.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
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: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential

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

-EndpointName

Specifies the name of the endpoint.

Type: System.String
Parameter Sets: ByFieldsParameterSet
Aliases:

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

-HostName

Specifies the host name of the custom domain.

Type: System.String
Parameter Sets: (All)
Aliases:

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

-ProfileName

Specifies the name of the profile.

Type: System.String
Parameter Sets: ByFieldsParameterSet
Aliases:

Required: True
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: System.String
Parameter Sets: ByFieldsParameterSet
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSEndpoint

Parameters: CdnEndpoint (ByValue)

OUTPUTS

Microsoft.Azure.Commands.Cdn.Models.CustomDomain.PSCustomDomain

NOTES

RELATED LINKS

Get-AzureRmCdnCustomDomain

Remove-AzureRmCdnCustomDomain

Test-AzureRmCdnCustomDomain