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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell