你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzContainerAppCustomDomainObject

Create an in-memory object for CustomDomain.

Syntax

New-AzContainerAppCustomDomainObject
   -Name <String>
   [-BindingType <String>]
   [-CertificateId <String>]
   [<CommonParameters>]

Description

Create an in-memory object for CustomDomain.

Examples

Example 1: Create an in-memory object for CustomDomain.

$certificateId = (Get-AzContainerAppManagedEnvCert -EnvName azps-env -ResourceGroupName azps_test_group_app -Name azps-env-cert).Id

New-AzContainerAppCustomDomainObject -Name "www.my-name.com" -BindingType "SniEnabled" -CertificateId $certificateId

BindingType CertificateId                                                                                                                                 Name
----------- -------------                                                                                                                                 ----
SniEnabled  /subscriptions/{subId}/resourceGroups/azps_test_group_app/providers/Microsoft.App/managedEnvironments/{manageEnvName}/certificates/{testcert} www.my-name.com

Create an in-memory object for CustomDomain.

Parameters

-BindingType

Custom Domain binding type.

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

-CertificateId

Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed Environment.

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

-Name

Hostname.

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

Outputs

CustomDomain