New-AzureRmApiManagementHostnameConfiguration

Creates an instance of PsApiManagementHostnameConfiguration.

Syntax

New-AzureRmApiManagementHostnameConfiguration
   -CertificateThumbprint <String>
   -Hostname <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<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

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

Outputs

Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameConfiguration