< Back

Enable-AzureRmTrafficManagerProfile

Tue Jan 29, 2019 10:11 pm

NAME Enable-AzureRmTrafficManagerProfile



SYNOPSIS

Enables a Traffic Manager profile.





SYNTAX

Enable-AzureRmTrafficManagerProfile [-DefaultProfile <IAzureContextContainer>] -Name <String> -ResourceGroupName <String> [<CommonParameters>]



Enable-AzureRmTrafficManagerProfile [-DefaultProfile <IAzureContextContainer>] -TrafficManagerProfile <TrafficManagerProfile> [<CommonParameters>]





DESCRIPTION

The Enable-AzureRmTrafficManagerProfile cmdlet enables an Azure Traffic Manager profile. You can specify the profile object by using the pipeline

or as a parameter value. Alternatively, you can specify the profile by using the Name and ResourceGroupName parameters.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TrafficManagerProfile <TrafficManagerProfile>

Specifies a TrafficManagerProfile object to enable. To obtain a TrafficManagerProfile object, use the Get-AzureRmTrafficManagerProfile cmdlet.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.Network.TrafficManagerProfile

This cmdlet accepts a TrafficManagerProfile object.





OUTPUTS

System.Boolean







NOTES









Example 1: Enable a profile specified by name



PS C:\\>Enable-AzureRmTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11"



This command enables the profile named ContosoProfile in ResourceGroup11.





Example 2: Enable a profile by using the pipeline



PS C:\\>Get-AzureRmTrafficManagerProfile -Name "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Enable-AzureRmTrafficManagerProfile



This command gets the profile named ContosoProfile in ResourceGroup11. The command then passes that profile to the

Enable-AzureRmTrafficManagerProfile cmdlet by using the pipeline operator. That cmdlet enables that profile.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... gerprofile

Disable-AzureRmTrafficManagerProfile

Get-AzureRmTrafficManagerProfile

New-AzureRmTrafficManagerProfile

Remove-AzureRmTrafficManagerProfile

Set-AzureRmTrafficManagerProfile