The Add-AzTrafficManagerCustomHeaderToProfile cmdlet adds custom header information to a local Azure Traffic Manager profile object.
You can get a profile by using the New-AzTrafficManagerProfile or Get-AzTrafficManagerProfile cmdlets.
This cmdlet operates on the local profile object.
Commit your changes to the profile for Traffic Manager by using the Set-AzTrafficManagerProfile cmdlet.
Examples
Example 1: Add custom header information to a profile
The first command gets an Azure Traffic Manager profile by using the Get-AzTrafficManagerProfile cmdlet.
The command stores the local profile in the $TrafficManagerProfile variable.
The second command adds custom header information to the profile stored in $TrafficManagerProfile.
The final command updates the profile in Traffic Manager to match the local value in $TrafficManagerProfile.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Specifies a local TrafficManagerProfile object.
This cmdlet modifies this local object.
To obtain a TrafficManagerProfile object, use the Get-AzTrafficManagerProfile cmdlet.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.