New-​Azure​Rm​Cdn​Endpoint

Creates a CDN endpoint.

Syntax

New-AzureRmCdnEndpoint
   -EndpointName <String>
   -ProfileName <String>
   -ResourceGroupName <String>
   -Location <String>
   [-OriginHostHeader <String>]
   [-OriginPath <String>]
   [-ContentTypesToCompress <String[]>]
   [-IsCompressionEnabled <Boolean>]
   [-IsHttpAllowed <Boolean>]
   [-IsHttpsAllowed <Boolean>]
   [-QueryStringCachingBehavior <PSQueryStringCachingBehavior>]
   -OriginName <String>
   -OriginHostName <String>
   [-HttpPort <Int32>]
   [-HttpsPort <Int32>]
   [-Tags <Hashtable>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
New-AzureRmCdnEndpoint
   -EndpointName <String>
   [-OriginHostHeader <String>]
   [-OriginPath <String>]
   [-ContentTypesToCompress <String[]>]
   [-IsCompressionEnabled <Boolean>]
   [-IsHttpAllowed <Boolean>]
   [-IsHttpsAllowed <Boolean>]
   [-QueryStringCachingBehavior <PSQueryStringCachingBehavior>]
   -OriginName <String>
   -OriginHostName <String>
   [-HttpPort <Int32>]
   [-HttpsPort <Int32>]
   [-Tags <Hashtable>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -CdnProfile <PSProfile>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmCdnEndpoint cmdlet creates an Azure Content Delivery Network (CDN) endpoint.

Examples

1:

Required Parameters

-CdnProfile

Specifies the CDN profile object to which the endpoint is added.

Type:PSProfile
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
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
-Location

Specifies the resource location of the endpoint.

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

Specifies the host name of the origin server.

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

Specifies the resource name of the origin server.

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 this endpoint belongs.

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

Optional Parameters

-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
-ContentTypesToCompress

Specifies an array of content types to compress from the edge node to the client.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HttpPort

Specifies the HTTP port number on the origin server.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HttpsPort

Specifies the HTTPS port number on the origin server.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsCompressionEnabled

Indicates whether compression is enabled for the endpoint.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsHttpAllowed

Indicates whether the endpoint enables HTTP traffic.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsHttpsAllowed

Indicates whether the endpoint enables HTTPS traffic.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OriginHostHeader

Specifies the origin host head of the endpoint.

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

Specifies the path of the origin server.

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

Specifies the behavior of CDN endpoint when a query string is in the request URL.

Type:PSQueryStringCachingBehavior
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tags

Specifies a hash table of the tags that associated with this resource.

Type:Hashtable
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