New-​Azure​Rm​Api​Management​Hostname​Configuration

Creates an instance of PsApiManagementHostnameConfiguration.

Syntax

New-AzureRmApiManagementHostnameConfiguration
   -CertificateThumbprint <String>
   -Hostname <String>
   [<CommonParameters>]

Description

The New-AzureRmApiManagementHostnameConfiguration cmdlet is a helper command that creates an instance of PsApiManagementHostnameConfiguration. This command is used with the Set-AzureRmApiManagementHostnames cmdlet.

Examples

Example 1: Create and initialize an instance of PsApiManagementHostnameConfiguration

PS C:\>New-AzureRmApiManagementHostnameConfiguration -Hostname "portal.contoso.com" -CertificateThumbprint "33CC47C6FCA848DC9B14A6F071C1EF7C"

This command creates and initializes an instance of PsApiManagementHostnameConfiguration.

Required Parameters

-CertificateThumbprint

Specifies the certificate thumbprint. The certificate must be first imported with the Import-AzureRmApiManagementHostnameCertificate cmdlet.

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

Specifies the custom host name for which this cmdlet creates the PsApiManagementHostnameConfiguration instance.

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