Skip to content

Commit

Permalink
Added templated for PowerBi and Batch Account
Browse files Browse the repository at this point in the history
  • Loading branch information
Zecharia Kasina (PSP) committed Aug 28, 2017
1 parent 54ee6d2 commit 4e2b8d3
Show file tree
Hide file tree
Showing 8 changed files with 170 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 101-batchaccount-with-storage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Create a Batch Account using a template

<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F101-batchaccount-with-storage%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-batchaccount-with-storage%2Fazuredeploy.json" target="_blank">
<img src="http://armviz.io/visualizebutton.png"/>
</a>

This ARM template creates a batch account resource in Azure.
71 changes: 71 additions & 0 deletions 101-batchaccount-with-storage/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"batchAccountName": {
"type": "string",
"metadata": {
"description": "Batch Account Name"
}
},
"storageAccountsku": {
"type": "string",
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_GRS",
"Standard_ZRS",
"Premium_LRS"
],
"metadata": {
"description": "Storage Account type"
}
}
},
"variables": {
"storageAccountName": "[concat(uniqueString(resourceGroup().id),'storage')]"
},
"resources": [{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountname')]",
"apiVersion": "2016-01-01",
"location": "[resourceGroup().location]",
"comments": "This storage account is used to associate to a batch account",
"sku": {
"name": "[parameters('storageAccountsku')]"
},
"kind": "Storage",
"tags": {
"ObjectName": "[variables('storageAccountName')]"
},
"properties": {}
},
{
"type": "Microsoft.Batch/batchAccounts",
"name": "[parameters('batchAccountName')]",
"apiVersion": "2015-12-01",
"location": "[resourceGroup().location]",
"tags": {
"ObjectName": "[parameters('batchAccountName')]"
},
"properties": {
"autoStorage": {
"storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
}
},
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
]
}
],
"outputs": {
"storageAccountName": {
"type": "string",
"value": "[variables('storageAccountName')]"
},
"batchAccountName": {
"type": "string",
"value": "[parameters('batchAccountName')]"
}
}
}
9 changes: 9 additions & 0 deletions 101-batchaccount-with-storage/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"batchAccountName": {
"value": "GEN_UNIQUE"
}
}
}
7 changes: 7 additions & 0 deletions 101-batchaccount-with-storage/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"itemDisplayName": "Create a Batch Account using a template",
"description": "This template creates a Batch Account and a storage account.",
"summary": "Create a Batch Account using a template and s storage account associated with the batch account.",
"githubUsername": "zechariahks",
"dateUpdated": "2017-08-28"
}
10 changes: 10 additions & 0 deletions 101-powerbi-workspace-create/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Create a PowerBI Workspace Collection using a template

<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F101-powerbi-workspace-create%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-powerbi-workspace-create%2Fazuredeploy.json" target="_blank">
<img src="http://armviz.io/visualizebutton.png"/>
</a>

This ARM template creates a PowerBI Workspace collection resource in Azure.
44 changes: 44 additions & 0 deletions 101-powerbi-workspace-create/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"powerbiWorkspaceName": {
"type": "string",
"minLength": 3,
"maxLength": 63,
"metadata": {
"description": "the name of the PowerBI workspace collection name. It should match with the following regular expression: ^(?:[a-zA-Z0-9]+-?)+$ or it will raise an error. "
}
},
"sku": {
"type": "string",
"allowedValues": [
"S1",
"s1"
],
"metadata": {
"description": "provide the sku for powerbi workspace collection."
}
}
},
"resources": [
{
"apiVersion": "2016-01-29",
"type": "Microsoft.PowerBI/workspaceCollections",
"name": "[parameters('powerbiWorkspaceName')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "[parameters('sku')]"
},
"tags": {
"ObjectName": "[parameters('powerbiWorkspaceName')]"
}
}
],
"outputs": {
"powerbiWorkspaceName": {
"type": "string",
"value": "[parameters('powerbiWorkspaceName')]"
}
}
}
12 changes: 12 additions & 0 deletions 101-powerbi-workspace-create/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"powerbiWorkspaceName": {
"value": "GEN-UNIQUE"
},
"sku": {
"value": "S1"
}
}
}
7 changes: 7 additions & 0 deletions 101-powerbi-workspace-create/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"itemDisplayName": "Create a PowerBI Workspace Collection using a template",
"description": "This template creates a PowerBI Workspace Collection",
"summary": "Create a PowerBI Workspace Collection in Azure.",
"githubUsername": "zechariahks",
"dateUpdated": "2017-08-28"
}

0 comments on commit 4e2b8d3

Please sign in to comment.