Edit

Share via


New-AzContainerAppCustomDomainObject

Create an in-memory object for CustomDomain.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CertificateId

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Hostname.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

CustomDomain