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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell