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
 

Disable-AzureTrafficManagerProfile

Disable-AzureTrafficManagerProfile

microsoft.windowsazure.commands.trafficmanager.dll

Synopsis

Disables a Traffic Manager profile.

Syntax

Disable-AzureTrafficManagerProfile [-Name] [-PassThru] [<CommonParameters>]

Detailed Description

The Disable-AzureTrafficManagerProfile cmdlet disables a Microsoft Azure Traffic Manager profile. You can use the PassThru parameter to display whether the operation succeeds.

Parameters

-Name <String>

Specifies the name of the Traffic Manager profile to disable.

Aliases

None

Required?

true

Position

0

Default value

none

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Returns $True if the operation succeeded; otherwise, $False. By default, this cmdlet does not generate any output.

Aliases

None

Required?

false

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type

System.Boolean

Notes

Examples

-------------------------- Example 1: Disable a Traffic Manager profile and display the results --------------------------

This command disables the Traffic Manager profile named MyProfile. The command specifies the PassThru parameter to display whether the command succeeded.

PS C:\>Disable-AzureTrafficManagerProfile -Name "MyProfile" -PassThru
True

-------------------------- Example 2: Disable a Traffic Manager profile and display no results --------------------------

This command disables the Traffic Manager profile named MyProfile but does not display whether the command succeeded.

PS C:\>Disable-AzureTrafficManagerProfile -Name "MyProfile"

Online Version
Enable-AzureTrafficManagerProfile
Get-AzureTrafficManagerProfile
New-AzureTrafficManagerProfile
Remove-AzureTrafficManagerProfile
Set-AzureTrafficManagerProfile