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
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure PowerShell