Bearbeiten

Freigeben über


New-AzFrontDoor

Create a new Azure Front Door load balancer

Syntax

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>]
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.

Type:PSBackendPool[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-BackendPoolsSetting

Settings for all backendPools

Type:PSBackendPoolsSetting
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableCertificateNameCheck

Whether to disable certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnabledState

EnabledState of the Front Door load balancer. Default value is Enabled

Type:PSEnabledState
Accepted values:Enabled, Disabled
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-FrontendEndpoint

Frontend endpoints available to routing rule.

Type:PSFrontendEndpoint[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-HealthProbeSetting

Health probe settings associated with this Front Door instance.

Type:PSHealthProbeSetting[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-LoadBalancingSetting

Load balancing settings associated with this Front Door instance.

Type:PSLoadBalancingSetting[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Front Door name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The resource group name that the Front Door will be created in.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RoutingRule

Routing rules associated with this FrontDoor

Type:PSRoutingRule[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Tag

The tags associate with the FrontDoor.

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSFrontDoor