Skip to content

Commit

Permalink
Merge pull request Azure#6451 from bmoore-msft/master
Browse files Browse the repository at this point in the history
update prereq params
  • Loading branch information
bmoore-msft authored Aug 27, 2019
2 parents 2615efb + b8c1bd6 commit 8e441ad
Showing 1 changed file with 165 additions and 165 deletions.
Original file line number Diff line number Diff line change
@@ -1,165 +1,165 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"databaseAdminUsername": {
"type": "string",
"metadata": {
"description": "Username for DB Admin"
}
},
"databaseAdminPassword": {
"type": "securestring",
"metadata": {
"description": "Password for DB Admin"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
}
},
"variables": {
"storageAccountName": "[concat('storage', uniqueString(resourceGroup().id))]",
"storageAccountType": "Standard_LRS",
"vNetName": "vNet",
"vNetPrefix": "10.0.0.0/16",
"SubnetName": "Subnet-1",
"SubnetPrefix": "10.0.0.0/24",
"serverName": "[concat('server', uniqueString(resourceGroup().id))]",
"dataBaseName": "DB",
"dataBaseCollation": "SQL_Latin1_General_CP1_CI_AS",
"dataBaseEdition": "Basic",
"dataBaseRequestedServiceObjectiveName": "Basic"
},
"resources": [
{
"name": "[variables('storageAccountName')]",
"type": "Microsoft.Storage/storageAccounts",
"location": "[parameters('location')]",
"apiVersion": "2018-02-01",
"sku": {
"name": "[variables('storageAccountType')]"
},
"tags": {
"displayName": "storageAccount"
},
"kind": "Storage"
},
{
"name": "[variables('vNetName')]",
"type": "Microsoft.Network/virtualNetworks",
"location": "[parameters('location')]",
"apiVersion": "2018-04-01",
"tags": {
"displayName": "vNet"
},
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('vNetPrefix')]"
]
},
"subnets": [
{
"name": "[variables('SubnetName')]",
"properties": {
"addressPrefix": "[variables('SubnetPrefix')]"
}
}
]
}
},
{
"name": "[variables('serverName')]",
"type": "Microsoft.Sql/servers",
"location": "[parameters('location')]",
"apiVersion": "2018-06-01-preview",
"tags": {
"displayName": "server"
},
"properties": {
"administratorLogin": "[parameters('databaseAdminUsername')]",
"administratorLoginPassword": "[parameters('databaseAdminPassword')]"
},
"resources": [
{
"name": "AllowAllWindowsAzureIps",
"type": "firewallrules",
"location": "[parameters('location')]",
"apiVersion": "2018-06-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('serverName'))]"
],
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
}
},
{
"name": "[variables('dataBaseName')]",
"type": "databases",
"location": "[parameters('location')]",
"apiVersion": "2018-06-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('serverName'))]"
],
"tags": {
"displayName": "dataBase"
},
"properties": {
"collation": "[variables('dataBaseCollation')]",
"edition": "[variables('dataBaseEdition')]",
"maxSizeBytes": "1073741824",
"requestedServiceObjectiveName": "[variables('dataBaseRequestedServiceObjectiveName')]"
}
}
]
}
],
"outputs": {
"existingClusterStorageResourceGroup": {
"type": "string",
"value": "[resourceGroup().name]"
},
"existingClusterStorageAccountName": {
"type": "string",
"value": "[variables('storageAccountName')]"
},
"existingVirtualNetworkName": {
"type": "string",
"value": "[variables('vNetName')]"
},
"existingHiveMetastoreServerResourceGroupName": {
"type": "string",
"value": "[resourceGroup().name]"
},
"existingHiveMetastoreServerName": {
"type": "string",
"value": "[variables('serverName')]"
},
"existingHiveMetastoreDatabaseName": {
"type": "string",
"value": "[variables('dataBaseName')]"
},
"existingHiveMetastoreUsername": {
"type": "string",
"value": "[parameters('databaseAdminUsername')]"
},
"existingHiveMetastorePassword": {
"type": "string",
"value": "[parameters('databaseAdminPassword')]"
},
"existingVirtualNetworkResourceGroup": {
"type": "string",
"value": "[resourceGroup().name]"
},
"existingVirtualNetworkSubnetName": {
"type": "string",
"value": "[variables('SubnetName')]"
}
}
}
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"databaseAdminUsername": {
"type": "string",
"metadata": {
"description": "Username for DB Admin"
}
},
"databaseAdminPassword": {
"type": "securestring",
"metadata": {
"description": "Password for DB Admin"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
}
},
"variables": {
"storageAccountName": "[concat('storage', uniqueString(resourceGroup().id))]",
"storageAccountType": "Standard_LRS",
"vNetName": "vNet",
"vNetPrefix": "10.0.0.0/16",
"SubnetName": "Subnet-1",
"SubnetPrefix": "10.0.0.0/24",
"serverName": "[concat('server', uniqueString(resourceGroup().id))]",
"dataBaseName": "DB",
"dataBaseCollation": "SQL_Latin1_General_CP1_CI_AS",
"dataBaseEdition": "Basic",
"dataBaseRequestedServiceObjectiveName": "Basic"
},
"resources": [
{
"name": "[variables('storageAccountName')]",
"type": "Microsoft.Storage/storageAccounts",
"location": "[parameters('location')]",
"apiVersion": "2018-02-01",
"sku": {
"name": "[variables('storageAccountType')]"
},
"tags": {
"displayName": "storageAccount"
},
"kind": "Storage"
},
{
"name": "[variables('vNetName')]",
"type": "Microsoft.Network/virtualNetworks",
"location": "[parameters('location')]",
"apiVersion": "2018-04-01",
"tags": {
"displayName": "vNet"
},
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('vNetPrefix')]"
]
},
"subnets": [
{
"name": "[variables('SubnetName')]",
"properties": {
"addressPrefix": "[variables('SubnetPrefix')]"
}
}
]
}
},
{
"name": "[variables('serverName')]",
"type": "Microsoft.Sql/servers",
"location": "[parameters('location')]",
"apiVersion": "2018-06-01-preview",
"tags": {
"displayName": "server"
},
"properties": {
"administratorLogin": "[parameters('databaseAdminUsername')]",
"administratorLoginPassword": "[parameters('databaseAdminPassword')]"
},
"resources": [
{
"name": "AllowAllWindowsAzureIps",
"type": "firewallrules",
"location": "[parameters('location')]",
"apiVersion": "2018-06-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('serverName'))]"
],
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
}
},
{
"name": "[variables('dataBaseName')]",
"type": "databases",
"location": "[parameters('location')]",
"apiVersion": "2018-06-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', variables('serverName'))]"
],
"tags": {
"displayName": "dataBase"
},
"properties": {
"collation": "[variables('dataBaseCollation')]",
"edition": "[variables('dataBaseEdition')]",
"maxSizeBytes": "1073741824",
"requestedServiceObjectiveName": "[variables('dataBaseRequestedServiceObjectiveName')]"
}
}
]
}
],
"outputs": {
"existingClusterStorageResourceGroup": {
"type": "string",
"value": "[resourceGroup().name]"
},
"existingClusterStorageAccountName": {
"type": "string",
"value": "[variables('storageAccountName')]"
},
"existingVirtualNetworkName": {
"type": "string",
"value": "[variables('vNetName')]"
},
"existingHiveMetastoreServerResourceGroupName": {
"type": "string",
"value": "[resourceGroup().name]"
},
"existingHiveMetastoreServerName": {
"type": "string",
"value": "[variables('serverName')]"
},
"existingHiveMetastoreDatabaseName": {
"type": "string",
"value": "[variables('dataBaseName')]"
},
"existingHiveMetastoreUsername": {
"type": "string",
"value": "[parameters('databaseAdminUsername')]"
},
"existingHiveMetastorePassword": {
"type": "string",
"value": "[parameters('databaseAdminPassword')]"
},
"existingVirtualNetworkResourceGroup": {
"type": "string",
"value": "[resourceGroup().name]"
},
"existingVirtualNetworkSubnetName": {
"type": "string",
"value": "[variables('SubnetName')]"
}
}
}

0 comments on commit 8e441ad

Please sign in to comment.