Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureTrafficManagerProfile

Remove-AzureTrafficManagerProfile

microsoft.azure.commands.trafficmanager.dll, microsoft.windowsazure.commands.trafficmanager.dll

Synopsis

Deletes an Azure Traffic Manager profile.

Syntax

Remove-AzureTrafficManagerProfile [-Force] [-Profile] [-Name] [-ResourceGroupName] [<CommonParameters>]

Remove-AzureTrafficManagerProfile [-Force] [-Profile] [-TrafficManagerProfile] [<CommonParameters>]

Detailed Description

The Remove-AzureTrafficManagerProfile cmdlet deletes an Azure Traffic Manager profile. You can specify a profile to delete by name, or you can specify a profile object. You can delete a profile object from Traffic Manager by using the pipeline or as a parameter value.

Parameters

-Force <SwitchParameter>

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-Name <String>

Specifies the name of the Traffic Manager profile that this cmdlet deletes.

Aliases

none

Required?

true

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-Profile <AzureProfile>

Specifies an Azure profile.

Aliases

none

Required?

false

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-ResourceGroupName <String>

Specifies the name of a resource group. This cmdlet deletes a Traffic Manager profile in the group that this parameter specifies.

Aliases

none

Required?

true

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-TrafficManagerProfile <TrafficManagerProfile>

Specifies a TrafficManagerProfile object to delete.

Aliases

none

Required?

true

Position

named

Default value

none

Accept pipeline input?

true(ByValue)

Accept wildcard characters?

false

Input Type

Microsoft.Azure.Commands.Network.TrafficManagerProfile

Return Type

Boolean

Notes

None

Examples

Example 1: Delete a profile specified by name

This command deletes the profile named ContosoProfile in ResourceGroup11.

PS C:\>Remove-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" 

Example 2: Delete a profile by using the pipeline

This command gets the profile named ContosoProfile in ResourceGroup11, and then passes that profile to the current cmdlet by using the pipeline operator. The current command deletes that profile.

PS C:\>Get-AzureTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Remove-AzureTrafficManagerProfile 

Get-AzureTrafficManagerProfile
New-AzureTrafficManagerProfile
Set-AzureTrafficManagerProfile