< Back

Enable-AzureRmTrafficManagerEndpoint

Tue Jan 29, 2019 10:11 pm

NAME Enable-AzureRmTrafficManagerEndpoint



SYNOPSIS

Enables an endpoint in a Traffic Manager profile.





SYNTAX

Enable-AzureRmTrafficManagerEndpoint [-DefaultProfile <IAzureContextContainer>] -Name <String> -ProfileName <String> -ResourceGroupName <String>

-Type {AzureEndpoints | ExternalEndpoints | NestedEndpoints} [<CommonParameters>]



Enable-AzureRmTrafficManagerEndpoint [-DefaultProfile <IAzureContextContainer>] -TrafficManagerEndpoint <TrafficManagerEndpoint>

[<CommonParameters>]





DESCRIPTION

The Enable-AzureRmTrafficManagerEndpoint cmdlet enables an endpoint in an Azure Traffic Manager profile.



You can use the pipeline operator to pass a TrafficManagerEndpoint object to this cmdlet, or you can specify a TrafficManagerEndpoint object by

using the TrafficManagerEndpoint parameter.



Alternatively, you can specify the endpoint name and type by using the Name and Type parameters, together with the ProfileName 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 endpoint that this cmdlet enables.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProfileName <String>

Specifies the name of a Traffic Manager profile in which this cmdlet enables an endpoint. To obtain a profile, use the

Get-AzureRmTrafficManagerProfile cmdlet.



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 endpoint in the group that this parameter specifies.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TrafficManagerEndpoint <TrafficManagerEndpoint>

Specifies the Traffic Manager endpoint that this cmdlet enables. To obtain a TrafficManagerEndpoint object, use the

Get-AzureRmTrafficManagerEndpoint cmdlet.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Type <String>

Specifies the type of endpoint that this cmdlet disables in the Traffic Manager profile. Valid values are:



- AzureEndpoints



- ExternalEndpoints



- NestedEndpoints



Required? true

Position? named

Default value None

Accept pipeline input? False

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

TrafficManagerEndpoint

Parameter 'TrafficManagerEndpoint' accepts value of type 'TrafficManagerEndpoint' from the pipeline





OUTPUTS

System.Boolean







NOTES









Example 1: Enable an endpoint from a profile



PS C:\\>Enable-AzureRmTrafficManagerEndpoint -Name "contoso" -ProfileName "ContosoProfile" -ResourceGroupName ResourceGroup11 -Type

ExternalEndpoints



This command enables the external endpoint named contoso in the profile named ContosoProfile in resource group ResouceGroup11.





Example 2: Enable an endpoint by using the pipeline



PS C:\\>Get-AzureRmTrafficManagerEndpoint -Name "contoso" -Type ExternalEndpoints -ProfileName "ContosoProfile" -ResourceGroupName

"ResourceGroup11" | Enable-AzureRmTrafficManagerEndpoint



This command gets the external endpoint named Contoso from the profile named ContosoProfile in ResourceGroup11. The command then passes that

endpoint to the Enable-AzureRmTrafficManagerEndpoint cmdlet by using the pipeline operator. That cmdlet enables that endpoint.







RELATED LINKS

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

Disable-AzureRmTrafficManagerEndpoint

Get-AzureRmTrafficManagerEndpoint

Get-AzureRmTrafficManagerProfile

New-AzureRmTrafficManagerEndpoint

New-AzureRmTrafficManagerProfile

Remove-AzureRmTrafficManagerEndpointConfig

Set-AzureRmTrafficManagerProfile