/src/FrontDoor/FrontDoor/help/Enable-AzFrontDoorCustomDomainHttps.md
https://github.com/Azure/azure-powershell · Markdown · 367 lines · 298 code · 69 blank · 0 comment · 0 complexity · 23c98067d7af5e561c2a67b2a7cc9996 MD5 · raw file
- ---
- external help file: Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.dll-Help.xml
- Module Name: Az.FrontDoor
- online version: https://docs.microsoft.com/en-us/powershell/module/az.frontdoor/enable-azfrontdoorcustomdomainhttps
- schema: 2.0.0
- ---
- # Enable-AzFrontDoorCustomDomainHttps
- ## SYNOPSIS
- Enable HTTPS for a custom domain using Front Door managed certificate or using own certificate from Azure Key Vault.
- ## SYNTAX
- ### ByFieldsParameterSet (Default)
- ```
- Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName <String> -FrontDoorName <String>
- -FrontendEndpointName <String> [-MinimumTlsVersion <String>] [-DefaultProfile <IAzureContextContainer>]
- [-WhatIf] [-Confirm] [<CommonParameters>]
- ```
- ### ByFieldsWithVaultParameterSet
- ```
- Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName <String> -FrontDoorName <String>
- -FrontendEndpointName <String> -VaultId <String> -SecretName <String> -SecretVersion <String>
- [-MinimumTlsVersion <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
- [<CommonParameters>]
- ```
- ### ByResourceIdParameterSet
- ```
- Enable-AzFrontDoorCustomDomainHttps -ResourceId <String> [-MinimumTlsVersion <String>]
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
- ```
- ### ByResourceIdWithVaultParameterSet
- ```
- Enable-AzFrontDoorCustomDomainHttps -ResourceId <String> -VaultId <String> -SecretName <String>
- -SecretVersion <String> [-MinimumTlsVersion <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
- [-Confirm] [<CommonParameters>]
- ```
- ### ByObjectParameterSet
- ```
- Enable-AzFrontDoorCustomDomainHttps -InputObject <PSFrontendEndpoint> [-MinimumTlsVersion <String>]
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
- ```
- ### ByObjectWithVaultParameterSet
- ```
- Enable-AzFrontDoorCustomDomainHttps -InputObject <PSFrontendEndpoint> -VaultId <String> -SecretName <String>
- -SecretVersion <String> [-MinimumTlsVersion <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
- [-Confirm] [<CommonParameters>]
- ```
- ## DESCRIPTION
- The **Enable-AzFrontDoorCustomDomainHttps** enables HTTPS for a custom domain.
- ## EXAMPLES
- ### Example 1: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using Front Door managed certificate.
- ```powershell
- PS C:\> Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -MinimumTlsVersion "1.2"
- HostName : frontendpointname1.custom.xyz
- SessionAffinityEnabledState : Disabled
- SessionAffinityTtlSeconds : 0
- WebApplicationFirewallPolicyLink :
- Backends :
- CustomHttpsProvisioningState : Enabling
- CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest
- CertificateSource : FrontDoor
- ProtocolType : ServerNameIndication
- MinimumTlsVersion : 1.2
- Vault :
- SecretName :
- SecretVersion :
- CertificateType :
- ResourceState : Enabled
- Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
- /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
- Name : frontendpointname1-custom-xyz
- Type : Microsoft.Network/frontdoors/frontendendpoints
- ```
- Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using Front Door managed certificate.
- ### Example 2: Enable HTTPS for a custom domain with FrontDoorName and ResourceGroupName using own certificate in Key Vault.
- ```powershell
- PS C:\> $vaultId = (Get-AzKeyVault -VaultName $vaultName).ResourceId
- PS C:\> Enable-AzFrontDoorCustomDomainHttps -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -FrontendEndpointName "frontendpointname1-custom-xyz" -Vault $vaultId -secretName $secretName -SecretVersion $secretVersion -MinimumTlsVersion "1.0"
- HostName : frontendpointname1.custom.xyz
- SessionAffinityEnabledState : Disabled
- SessionAffinityTtlSeconds : 0
- WebApplicationFirewallPolicyLink :
- Backends :
- CustomHttpsProvisioningState : Enabling
- CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest
- CertificateSource : AzureKeyVault
- ProtocolType : ServerNameIndication
- MinimumTlsVersion : 1.0
- Vault :
- SecretName :
- SecretVersion :
- CertificateType :
- ResourceState : Enabled
- Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
- /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
- Name : frontendpointname1-custom-xyz
- Type : Microsoft.Network/frontdoors/frontendendpoints
- ```
- Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" that is part of Front Door "frontdoor1" in resource group "resourcegroup1" using Front Door managed certificate.
- ### Example 3: Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate.
- ```powershell
- PS C:\> Get-AzFrontDoorFrontendEndpoint -ResourceGroupName "resourcegroup1" -FrontDoorName "frontdoor1" -Name "frontendpointname1-custom-xyz" | Enable-AzFrontDoorCustomDomainHttps
- HostName : frontendpointname1.custom.xyz
- SessionAffinityEnabledState : Disabled
- SessionAffinityTtlSeconds : 0
- WebApplicationFirewallPolicyLink :
- Backends :
- CustomHttpsProvisioningState : Enabling
- CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest
- CertificateSource : FrontDoor
- ProtocolType : ServerNameIndication
- MinimumTlsVersion : 1.2
- Vault :
- SecretName :
- SecretVersion :
- CertificateType :
- ResourceState : Enabled
- Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
- /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
- Name : frontendpointname1-custom-xyz
- Type : Microsoft.Network/frontdoors/frontendendpoints
- ```
- Enable HTTPS for a custom domain with PSFrontendEndpoint object using Front Door managed certificate.
- ### Example 4: Enable HTTPS for a custom domain with resource id using Front Door managed certificate.
- ```powershell
- PS C:\> Enable-AzFrontDoorCustomDomainHttps -ResourceId $resourceId
- HostName : frontendpointname1.custom.xyz
- SessionAffinityEnabledState : Disabled
- SessionAffinityTtlSeconds : 0
- WebApplicationFirewallPolicyLink :
- Backends :
- CustomHttpsProvisioningState : Enabling
- CustomHttpsProvisioningSubstate : SubmittingDomainControlValidationRequest
- CertificateSource : FrontDoor
- ProtocolType : ServerNameIndication
- MinimumTlsVersion : 1.2
- Vault :
- SecretName :
- SecretVersion :
- CertificateType :
- ResourceState : Enabled
- Id : /subscriptions/{guid}/resourcegroups/resourcegroup1
- /providers/Microsoft.Network/frontdoors/frontdoor1/frontendendpoints/frontendpointname1-custom-xyz
- Name : frontendpointname1-custom-xyz
- Type : Microsoft.Network/frontdoors/frontendendpoints
- ```
- Enable HTTPS for a custom domain "frontendpointname1-custom-xyz" with resource id $resourceId using Front Door managed certificate.
- ## PARAMETERS
- ### -DefaultProfile
- The credentials, account, tenant, and subscription used for communication with Azure.
- ```yaml
- Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
- Parameter Sets: (All)
- Aliases: AzContext, AzureRmContext, AzureCredential
- Required: False
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -FrontDoorName
- The name of the Front Door.
- ```yaml
- Type: System.String
- Parameter Sets: ByFieldsParameterSet, ByFieldsWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -FrontendEndpointName
- Frontend endpoint name.
- ```yaml
- Type: System.String
- Parameter Sets: ByFieldsParameterSet, ByFieldsWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -InputObject
- The Frontend endpoint object to update.
- ```yaml
- Type: Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint
- Parameter Sets: ByObjectParameterSet, ByObjectWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: True (ByValue)
- Accept wildcard characters: False
- ```
- ### -MinimumTlsVersion
- The minimum TLS version required from the clients to establish an SSL handshake with Front Door.
- ```yaml
- Type: System.String
- Parameter Sets: (All)
- Aliases:
- Required: False
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -ResourceGroupName
- The resource group to which the Front Door belongs.
- ```yaml
- Type: System.String
- Parameter Sets: ByFieldsParameterSet, ByFieldsWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -ResourceId
- Resource Id of the Front Door endpoint to enable https
- ```yaml
- Type: System.String
- Parameter Sets: ByResourceIdParameterSet, ByResourceIdWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: True (ByPropertyName)
- Accept wildcard characters: False
- ```
- ### -SecretName
- The name of the Key Vault secret representing the full certificate PFX
- ```yaml
- Type: System.String
- Parameter Sets: ByFieldsWithVaultParameterSet, ByResourceIdWithVaultParameterSet, ByObjectWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -SecretVersion
- The version of the Key Vault secret representing the full certificate PFX
- ```yaml
- Type: System.String
- Parameter Sets: ByFieldsWithVaultParameterSet, ByResourceIdWithVaultParameterSet, ByObjectWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -VaultId
- The Key Vault id containing the SSL certificate
- ```yaml
- Type: System.String
- Parameter Sets: ByFieldsWithVaultParameterSet, ByResourceIdWithVaultParameterSet, ByObjectWithVaultParameterSet
- Aliases:
- Required: True
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -Confirm
- Prompts you for confirmation before running the cmdlet.
- ```yaml
- Type: System.Management.Automation.SwitchParameter
- Parameter Sets: (All)
- Aliases: cf
- Required: False
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### -WhatIf
- Shows what would happen if the cmdlet runs. The cmdlet is not run.
- ```yaml
- Type: System.Management.Automation.SwitchParameter
- Parameter Sets: (All)
- Aliases: wi
- Required: False
- Position: Named
- Default value: None
- Accept pipeline input: False
- Accept wildcard characters: False
- ```
- ### CommonParameters
- This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
- ## INPUTS
- ### System.String
- ## OUTPUTS
- ### Microsoft.Azure.Commands.FrontDoor.Models.PSFrontendEndpoint
- ## NOTES
- ## RELATED LINKS