Skip to content

Commit

Permalink
Updating sample parameters based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethBradshawMSFT committed Nov 6, 2015
1 parent 834405e commit e36ea79
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 40 deletions.
2 changes: 1 addition & 1 deletion 101-traffic-manager-external-endpoint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This template shows how to create an Azure Traffic Manager profile using external endpoints and the performance traffic routing method. To enable performance-based traffic routing, each endpoint needs an "endpointLocation" that specifies the closest Azure region.

The accompanying PowerShell script shows how to create a resource group from the template and read back the Traffic Manager profile details.
The accompanying PowerShell script shows how to create a resource group from the template and read back the Traffic Manager profile details. Before running the script, edit *azuredeploy.parameters.json* and replace the values marked with *'#####'*.


See also:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# parameters
#
# This PowerShell script shows how to create a sample traffic manager profile from the accompanying template.
# As DNS names need to be unique, please edit azuredeploy.parameters.json and replace the values marked with '#####'
#

# parameters
$rgName = "TrafficManagerExternalEndpointExample"

# import the AzureRM modules
Expand All @@ -10,9 +15,8 @@ Login-AzureRmAccount

# create the resource from the template - pass names as parameters
$scriptDir = Split-Path $MyInvocation.MyCommand.Path
$params = @{"uniqueDnsName"="myexample"}
New-AzureRmResourceGroup -Location "northeurope" -Name $rgName
New-AzureRmResourceGroupDeployment -Verbose -Force -ResourceGroupName $rgName -TemplateFile "$scriptDir\azuredeploy.json" -TemplateParameterObject $params
New-AzureRmResourceGroupDeployment -Verbose -Force -ResourceGroupName $rgName -TemplateFile "$scriptDir\azuredeploy.json" -TemplateParameterFile "$scriptDir\azuredeploy.parameters.json"

# display the end result
$x = Get-AzureRmTrafficManagerProfile -ResourceGroupName $rgName
Expand Down
5 changes: 0 additions & 5 deletions 101-traffic-manager-external-endpoint/sample.parameters.json

This file was deleted.

2 changes: 1 addition & 1 deletion 201-traffic-manager-vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This template shows how to create an Azure Traffic Manager profile to load-balance across a couple of Azure virtual machines. Each endpoint has an equal weight but different weights can be specified to distribute load non-uniformly.

The accompanying PowerShell script shows how to create a resource group from the template and read back the Traffic Manager profile details.
The accompanying PowerShell script shows how to create a resource group from the template and read back the Traffic Manager profile details. Before running the script, edit *azuredeploy.parameters.json* and replace the values marked with *'#####'*.


See also:
Expand Down
9 changes: 7 additions & 2 deletions 201-traffic-manager-vm/TrafficManagerVMs.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# parameters
#
# This PowerShell script shows how to create a sample traffic manager profile from the accompanying template.
# As DNS names need to be unique, please edit azuredeploy.parameters.json and replace the values marked with '#####'
#

# parameters
$rgName = "TrafficManagerVMExample"

# import the AzureRM modules
Expand All @@ -11,7 +16,7 @@ Login-AzureRmAccount
# create the resource from the template - pass names as parameters
$scriptDir = Split-Path $MyInvocation.MyCommand.Path
New-AzureRmResourceGroup -Location "northeurope" -Name $rgName
New-AzureRmResourceGroupDeployment -Verbose -Force -ResourceGroupName $rgName -TemplateFile "$scriptDir\azuredeploy.json" -TemplateParameterFile "$scriptDir\sample.parameters.json"
New-AzureRmResourceGroupDeployment -Verbose -Force -ResourceGroupName $rgName -TemplateFile "$scriptDir\azuredeploy.json" -TemplateParameterFile "$scriptDir\azuredeploy.parameters.json"

# display the end result
$x = Get-AzureRmTrafficManagerProfile -ResourceGroupName $rgName
Expand Down
17 changes: 0 additions & 17 deletions 201-traffic-manager-vm/sample.parameters.json

This file was deleted.

2 changes: 1 addition & 1 deletion 201-traffic-manager-webapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This template shows how to create an Azure Traffic Manager profile to provide failover resilience between two Web Apps.

The accompanying PowerShell script shows how to create a resource group from the template and read back the Traffic Manager profile details.
The accompanying PowerShell script shows how to create a resource group from the template and read back the Traffic Manager profile details. Before running the script, edit *azuredeploy.parameters.json* and replace the values marked with *'#####'*.


See also:
Expand Down
9 changes: 7 additions & 2 deletions 201-traffic-manager-webapp/TrafficManagerWebApp.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# parameters
#
# This PowerShell script shows how to create a sample traffic manager profile from the accompanying template.
# As DNS names need to be unique, please edit azuredeploy.parameters.json and replace the values marked with '#####'
#

# parameters
$rgName = "TrafficManagerWebAppExample"

# import the AzureRM modules
Expand All @@ -11,7 +16,7 @@ Login-AzureRmAccount
# create the resource from the template - pass names as parameters
$scriptDir = Split-Path $MyInvocation.MyCommand.Path
New-AzureRmResourceGroup -Location "northeurope" -Name $rgName
New-AzureRmResourceGroupDeployment -Verbose -Force -ResourceGroupName $rgName -TemplateFile "$scriptDir\azuredeploy.json" -TemplateParameterFile "$scriptDir\sample.parameters.json"
New-AzureRmResourceGroupDeployment -Verbose -Force -ResourceGroupName $rgName -TemplateFile "$scriptDir\azuredeploy.json" -TemplateParameterFile "$scriptDir\azuredeploy.parameters.json"

# display the end result
$x = Get-AzureRmTrafficManagerProfile -ResourceGroupName $rgName
Expand Down
8 changes: 0 additions & 8 deletions 201-traffic-manager-webapp/sample.parameters.json

This file was deleted.

0 comments on commit e36ea79

Please sign in to comment.