New-AzFrontDoor
Create a new Azure Front Door load balancer
Syntax
ByFieldsWithBackendPoolsSettingParameterSet (Default)
New-AzFrontDoor
-ResourceGroupName <String>
-Name <String>
-RoutingRule <PSRoutingRule[]>
-BackendPool <PSBackendPool[]>
-FrontendEndpoint <PSFrontendEndpoint[]>
-LoadBalancingSetting <PSLoadBalancingSetting[]>
-HealthProbeSetting <PSHealthProbeSetting[]>
[-Tag <Hashtable>]
[-EnabledState <PSEnabledState>]
[-BackendPoolsSetting <PSBackendPoolsSetting>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByFieldsWithCertificateNameCheckParameterSet
New-AzFrontDoor
-ResourceGroupName <String>
-Name <String>
-RoutingRule <PSRoutingRule[]>
-BackendPool <PSBackendPool[]>
-FrontendEndpoint <PSFrontendEndpoint[]>
-LoadBalancingSetting <PSLoadBalancingSetting[]>
-HealthProbeSetting <PSHealthProbeSetting[]>
[-Tag <Hashtable>]
[-EnabledState <PSEnabledState>]
[-DisableCertificateNameCheck]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzFrontDoor cmdlet creates a new Azure Front Door load balancer in the specified resource group under current subscription
Examples
Example 1: Create a Front Door based on given parameters.
New-AzFrontDoor -Name "frontDoor1" -ResourceGroupName "rg1" -RoutingRule $routingrule1 -BackendPool $backendpool1 -FrontendEndpoint $frontendEndpoint1 -LoadBalancingSetting $loadBalancingSetting1 -HealthProbeSetting $healthProbeSetting1 -BackendPoolsSetting $backendPoolsSetting1
FriendlyName : frontdoor1
RoutingRules : {routingrule1}
BackendPools : {backendpool1}
BackendPoolsSetting : {backendPoolsSetting1}
EnforceCertificateNameCheck : {backendPoolsSetting1.EnforceCertificateNameCheck}
HealthProbeSettings : {healthProbeSetting1}
LoadBalancingSettings : {loadbalancingsetting1}
FrontendEndpoints : {frontendendpoint1}
EnabledState : Enabled
ResourceState : Enabled
ProvisioningState : Succeeded
Cname :
Tags : {tag1, tag2}
Id : /subscriptions/{guid}/resourcegroups/rg1/providers/Microsoft.Network/frontdoors/frontdoor1
Name : frontdoor1
Type : Microsoft.Network/frontdoors
Create a Front Door based on given parameters.
Parameters
-BackendPool
Backendpools available to routing rule.
Parameter properties
Type: PSBackendPool [ ]
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
-BackendPoolsSetting
Settings for all backendPools
Parameter properties
Parameter sets
ByFieldsWithBackendPoolsSettingParameterSet
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DisableCertificateNameCheck
Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByFieldsWithCertificateNameCheckParameterSet
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-EnabledState
EnabledState of the Front Door load balancer.
Default value is Enabled
Parameter properties
Type: PSEnabledState
Default value: None
Accepted values: Enabled, Disabled
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
-FrontendEndpoint
Frontend endpoints available to routing rule.
Parameter properties
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-HealthProbeSetting
Health probe settings associated with this Front Door instance.
Parameter properties
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-LoadBalancingSetting
Load balancing settings associated with this Front Door instance.
Parameter properties
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
Front Door name.
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
-ResourceGroupName
The resource group name that the Front Door will be created in.
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
-RoutingRule
Routing rules associated with this FrontDoor
Parameter properties
Type: PSRoutingRule [ ]
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
-Tag
The tags associate with the FrontDoor.
Parameter properties
Type: Hashtable
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
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
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 .
None
Outputs