Skip to content

Commit b63e904

Browse files
Merge pull request #2 from AlekseiPolkovnikov/alpolko
App Gateway demo setup template created
2 parents adb7318 + 616e3b9 commit b63e904

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3334
-692
lines changed

101-notification-hub/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Create a Notification Hub on Azure
2+
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-notification-hub%2Fazuredeploy.json" target="_blank">
3+
<img src="http://azuredeploy.net/deploybutton.png"/>
4+
</a>
5+
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-notification-hub%2Fazuredeploy.json" target="_blank">
6+
<img src="http://armviz.io/visualizebutton.png"/>
7+
</a>
8+
9+
This template creates a Notification Hub on Azure. Template was authored by John Downs.
10+
11+
`Tags: notificationhubs`
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"namespaceName": {
6+
"type": "string",
7+
"metadata": {
8+
"description": "The name of the Notification Hubs namespace."
9+
}
10+
},
11+
"location": {
12+
"type": "string",
13+
"defaultValue": "[resourceGroup().location]",
14+
"metadata": {
15+
"description": "The location in which the Notification Hubs resources should be deployed."
16+
}
17+
}
18+
},
19+
"variables": {
20+
"hubName": "MyHub"
21+
},
22+
"resources": [
23+
{
24+
"apiVersion": "2014-09-01",
25+
"name": "[parameters('namespaceName')]",
26+
"type": "Microsoft.NotificationHubs/namespaces",
27+
"location": "[parameters('location')]",
28+
"kind": "NotificationHub",
29+
"resources": [
30+
{
31+
"name": "[concat(parameters('namespaceName'), '/', variables('hubName'))]",
32+
"apiVersion": "2014-09-01",
33+
"type": "Microsoft.NotificationHubs/namespaces/notificationHubs",
34+
"location": "[parameters('location')]",
35+
"dependsOn": [
36+
"[parameters('namespaceName')]"
37+
]
38+
}
39+
]
40+
}
41+
]
42+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"namespaceName": {
6+
"value": "GEN-UNIQUE"
7+
}
8+
}
9+
}

101-notification-hub/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"itemDisplayName": "Create Azure Notification Hub",
3+
"description": "Creates an Azure Notification Hub, Template originally authored by John Downs.",
4+
"summary": "This template creates an Azure Notification Hub. Template originally authored by John Downs.",
5+
"githubUsername": "johndowns",
6+
"dateUpdated": "2016-08-28"
7+
}

101-vm-secure-password/azuredeploy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"publicIPAddressType": "Dynamic",
4949
"vmStorageAccountContainerName": "vhds",
5050
"vmName": "SimpleWindowsVM",
51-
"vmSize": "Standard_D1",
51+
"vmSize": "Standard_A1",
5252
"virtualNetworkName": "MyVNET",
5353
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
5454
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",
@@ -184,4 +184,4 @@
184184
}
185185
}
186186
]
187-
}
187+
}

201-vm-push-certificate-windows/azuredeploy.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,20 @@
7171
"imageOffer": "WindowsServer",
7272
"imageSKU": "2012-R2-Datacenter",
7373
"publicIPName": "certPublicIP",
74-
"publicIPAddressType": "Dynamic"
74+
"publicIPAddressType": "Dynamic"
7575
},
7676
"resources": [
7777
{
7878
"type": "Microsoft.Storage/storageAccounts",
7979
"name": "[parameters('newStorageAccountName')]",
80-
"apiVersion": "2015-05-01-preview",
80+
"apiVersion": "2015-06-15",
8181
"location": "[resourceGroup().location]",
8282
"properties": {
8383
"accountType": "[parameters('storageAccountType')]"
8484
}
8585
},
8686
{
87-
"apiVersion": "2015-05-01-preview",
87+
"apiVersion": "2015-06-15",
8888
"type": "Microsoft.Network/publicIPAddresses",
8989
"name": "[variables('publicIPName')]",
9090
"location": "[resourceGroup().location]",
@@ -93,7 +93,7 @@
9393
}
9494
},
9595
{
96-
"apiVersion": "2015-05-01-preview",
96+
"apiVersion": "2015-06-15",
9797
"type": "Microsoft.Network/virtualNetworks",
9898
"name": "[variables('virtualNetworkName')]",
9999
"location": "[resourceGroup().location]",
@@ -114,7 +114,7 @@
114114
}
115115
},
116116
{
117-
"apiVersion": "2015-05-01-preview",
117+
"apiVersion": "2015-06-15",
118118
"type": "Microsoft.Network/networkInterfaces",
119119
"name": "[variables('nicName')]",
120120
"location": "[resourceGroup().location]",
@@ -140,7 +140,7 @@
140140
}
141141
},
142142
{
143-
"apiVersion": "2015-05-01-preview",
143+
"apiVersion": "2015-06-15",
144144
"type": "Microsoft.Compute/virtualMachines",
145145
"name": "[parameters('vmName')]",
146146
"location": "[resourceGroup().location]",
@@ -180,7 +180,7 @@
180180
"osDisk": {
181181
"name": "osdisk",
182182
"vhd": {
183-
"uri": "[concat('http://',parameters('newStorageAccountName'),'.blob.core.windows.net/vhds/','osdisk.vhd')]"
183+
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', parameters('newStorageAccountName')),'2015-06-15').primaryEndpoints.blob,'vhds/','osdisk.vhd')]"
184184
},
185185
"caching": "ReadWrite",
186186
"createOption": "FromImage"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### Autoscale demo app on Ubuntu 16.04 ###
2+
3+
Simple self-contained Ubuntu autoscale example which includes a Python Bottle server to do work. The VM Scale Set scales up when average CPU across all VMs > 60%, scales down when avg CPU < 30%.
4+
5+
- Deploy the scale set with an instance count of 1
6+
- After it is deployed look at the resource group public IP address resource (in portal or resources explorer). Get the IP or domain name.
7+
- Browse to the website of vm#0 (port 9000), which shows the current backend VM name.
8+
- To start doing work on the first VM browse to dns:9000/do_work
9+
- After a few minutes the VM Scale Set capacity will increase. Note that the first scale out takes longer than subsequent ones whlie the autoscale pipeline gets initialized (i.e. wait up to half an hour before you concluding there's a problem).
10+
- You can stop doing work by browsing to dns:9000/stop_work.
11+
12+
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-vmss-bottle-autoscale%2Fazuredeploy.json" target="_blank">
13+
<img src="http://azuredeploy.net/deploybutton.png"/>
14+
</a>
15+
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F201-vmss-bottle-autoscale%2Fazuredeploy.json" target="_blank">
16+
<img src="http://armviz.io/visualizebutton.png"/>
17+
</a>
18+

0 commit comments

Comments
 (0)