< Back

New-AzureRmApiManagementHostnameConfiguration

Tue Jan 29, 2019 9:29 pm

NAME New-AzureRmApiManagementHostnameConfiguration



SYNOPSIS

Creates an instance of PsApiManagementHostnameConfiguration.





SYNTAX

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





PARAMETERS

-CertificateThumbprint <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Hostname <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameConfiguration







NOTES









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 .







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... figuration

Import-AzureRmApiManagementHostnameCertificate

Set-AzureRmApiManagementHostnames