New-AzureRmCdnEndpoint

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>]
   [-OptimizationType <String>]
   [-GeoFilters <PSGeoFilter[]>]
   [-Tags <Hashtable>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzureRmCdnEndpoint
   -EndpointName <String>
   -CdnProfile <PSProfile>
   [-OriginHostHeader <String>]
   [-OriginPath <String>]
   [-ContentTypesToCompress <String[]>]
   [-IsCompressionEnabled <Boolean>]
   [-IsHttpAllowed <Boolean>]
   [-IsHttpsAllowed <Boolean>]
   [-QueryStringCachingBehavior <PSQueryStringCachingBehavior>]
   -OriginName <String>
   -OriginHostName <String>
   [-HttpPort <Int32>]
   [-HttpsPort <Int32>]
   [-OptimizationType <String>]
   [-GeoFilters <PSGeoFilter[]>]
   [-Tags <Hashtable>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<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:Microsoft.Azure.Commands.Cdn.Models.Profile.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:System.Management.Automation.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:System.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:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-GeoFilters

The list of geo filters that applies to this endpoint.

Type:Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSGeoFilter[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HttpPort

Specifies the HTTP port number on the origin server.

Type:System.Nullable`1[System.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:System.Nullable`1[System.Int32]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsCompressionEnabled

Indicates whether compression is enabled for the endpoint.

Type:System.Nullable`1[System.Boolean]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsHttpAllowed

Indicates whether the endpoint enables HTTP traffic.

Type:System.Nullable`1[System.Boolean]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsHttpsAllowed

Indicates whether the endpoint enables HTTPS traffic.

Type:System.Nullable`1[System.Boolean]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OptimizationType

Specifies any optimization this endpoint has.

Type:String
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:System.Nullable`1[Microsoft.Azure.Commands.Cdn.Models.Endpoint.PSQueryStringCachingBehavior]
Parameter Sets:IgnoreQueryString, BypassCaching, UseQueryString, NotSet
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:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSProfile

Parameter 'CdnProfile' accepts value of type 'PSProfile' from the pipeline

Outputs

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