Template for MySql Hosting Server and Database creation template (#231)

This commit is contained in:
Dipak V 2017-05-22 16:22:34 -07:00 коммит произвёл vikasnav
Родитель ea21748c4a
Коммит fa159c11fc
8 изменённых файлов: 218 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,37 @@
## AzureStack SQL Adapter RP hosting server ##
<b>DESCRIPTION</b>
This template adds an existing MySql server as a MySql Adapter hosting server.
<b>PREREQUISITES</b>
This template requires the MySql Adapter RP to be deployed on the AzureStack environment. For more information see: https://aka.ms/azurestackmysqldeploy
This template requires an existing MySql server to add it as MySql Adapter hosting server.
<b>DEPLOY</b>
Login to AzureStack portal
Click 'New' -> 'Custom' -> 'Template Deployment'
Copy content in azuredeploy.json, click 'Edit Template', paste all the content and click 'Save'
Fill in the parameters
Click 'Create New' to create a new 'Resource Group'
Click 'Create'
Wait for results to appear in 'Storage Account' of a given 'Resource Group' parameter name resource
<b>PARAMETERS</b>
```Poweshell
Name: <MySql Server FQDN or IP address of an existing MySql server to be added as a MySql Adapter hosting server>
Username: <Name of a MySql login to be used for connecting to the MySql database engine on the hosting server using MySql authentication>
Password: <Password for the given MySql login>
Total Space MB: <The total space in MB to be allocated for creation of databases on the hosting server>

Просмотреть файл

@ -0,0 +1,35 @@
{
$schema: "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
contentVersion: "1.0.0.0",
parameters: {
name: {
type: "string"
},
username: {
type: "string"
},
password: {
type: "secureString"
},
totalSpaceMB: {
type: "int"
},
location: {
type: "string"
}
},
resources: [
{
apiVersion: "2017-02-15-preview",
type: "Microsoft.MySqlAdapter.Admin/hostingServers",
name: "[parameters('name')]",
location: "[parameters('location')]",
properties: {
name: "[parameters('name')]",
username: "[parameters('username')]",
password: "[parameters('password')]",
totalSpaceMB: "[parameters('totalSpaceMB')]"
}
}
]
}

Просмотреть файл

@ -0,0 +1,21 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "mysqlrp.local.cloudapp.azurestack.external"
},
"username": {
"value": "admin1"
},
"password": {
"value": ""
},
"totalSpaceMB": {
"value": 10240
},
"location": {
"value": "local"
}
}
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"itemDisplayName": "MySql Adapter add hosting server",
"description": "This template adds an existing MySql server as a MySql Adapter hosting server",
"summary": "Adds an existing MySql server as a MySql Adapter hosting server",
"githubUsername": "azurestack",
"dateUpdated": "2017-05-16"
}

Просмотреть файл

@ -0,0 +1,40 @@
## AzureStack MySql Adapter RP database ##
<b>DESCRIPTION</b>
This template creates a new MySql database of the specified size and SKU.
<b>PREREQUISITES</b>
This template requires the MySql Adapter RP to be deployed on the AzureStack environment. For more information see: https://aka.ms/azurestackmysqldeploy
Ensure the MySql Adapter RP namespace is registered on your subscription. For more information see the last step on this document: https://aka.ms/azurestackmysqldeploy
<b>DEPLOY</b>
Login to AzureStack portal
Click 'New' -> 'Custom' -> 'Template Deployment'
Copy content in azuredeploy.json, click 'Edit Template', paste all the content and click 'Save'
Fill in the parameters
Click 'Create New' to create a new 'Resource Group'
Click 'Create'
Wait for results to appear in 'Storage Account' of a given 'Resource Group' parameter name resource
<b>PARAMETERS</b>
```Poweshell
Database Name: <Name of the MySql database to be created>
Database Username: <Name of the MySql login to be created for connecting to the new database>
Database Login Password: <Password of the MySql login to be created for connecting to the new database>
Max Size MB: <Maximum Size in MB of the MySql database>
Collation: <Collation of the new MySql database>
Edition: <Edition of MySql Server>

Просмотреть файл

@ -0,0 +1,47 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"databaseName": {
"type": "string"
},
"userName": {
"type": "string"
},
"password": {
"type": "securestring"
},
"maxSizeMB": {
"type": "string",
"defaultValue": "2048"
},
"collation": {
"type": "string",
"defaultValue": "utf8_general_ci"
},
"edition": {
"type": "string",
"defaultValue": "Web"
},
"location": {
"type": "string"
}
},
"resources": [
{
"apiVersion": "2017-02-15-preview",
"location": "[parameters('location')]",
"name": "[parameters('databaseName')]",
"properties": {
"databaseName": "[parameters('databaseName')]",
"username": "[parameters('userName')]",
"password": "[parameters('password')]",
"maxSizeMB": "[parameters('maxSizeMB')]",
"collation": "[parameters('collation')]",
"edition": "[parameters('edition')]"
},
"type": "Microsoft.MySqlAdapter/databases"
}
],
"variables": {}
}

Просмотреть файл

@ -0,0 +1,24 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"databaseName": {
"value": "mynewdatabase"
},
"userName": {
"value": "mynewdatabasesa"
},
"password": {
"value": ""
},
"maxSizeMB": {
"value": "2048"
},
"collation": {
"value": "utf8_general_ci"
},
"edition": {
"value": "Web"
}
}
}

Просмотреть файл

@ -0,0 +1,7 @@
{
"itemDisplayName": "MySql Adapter create database",
"description": "This template creates a new MySql database of the specified size and SKU",
"summary": "Creates a new MySql database of the specified size and SKU",
"githubUsername": "azurestack",
"dateUpdated": "2017-05-16"
}