編輯

共用方式為


Remove-AzFrontDoor

Remove Front Door load balancer

Syntax

Remove-AzFrontDoor
      -ResourceGroupName <String>
      -Name <String>
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzFrontDoor
      -InputObject <PSFrontDoor>
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzFrontDoor
      -ResourceId <String>
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-AzFrontDoor cmdlet removes a Front Door load balancer under the current subscription

Examples

Example 1: Remove "frontdoor1" in resource group "rg1" under the current subscription.

Remove-AzFrontDoor -Name "frontdoor1" -ResourceGroupName "rg1"

Remove "frontdoor1" in resource group "rg1" under the current subscription.

Example 2: Remove all FrontDoors in resource group "rg1" under the current subscription.

Get-AzFrontDoor -ResourceGroupName "rg1" | Remove-AzFrontDoor

Remove all FrontDoors in resource group "rg1" under the current subscription.

Example 3: Remove all FrontDoors under the current subscription.

Get-AzFrontDoor | Remove-AzFrontDoor

Remove all FrontDoors under the current subscription.

Example 4: Remove all FrontDoors with name "frontdoor1" under the current subscription.

Remove-AzFrontDoor -Name "frontdoor1" | Remove-AzFrontDoor

Remove all FrontDoors with name "frontdoor1" under the current subscription.

Parameters

-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

-InputObject

The Front Door object to delete.

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

-Name

The name of the Front Door to delete.

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

-PassThru

Return object (if specified).

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

-ResourceGroupName

The resource group to which the Front Door belongs.

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

-ResourceId

Resource Id of the Front Door to delete

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
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

PSFrontDoor

String

Outputs

Boolean