You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/mysql/quickstart-create-mysql-server-database-using-arm-template.md
+27-53Lines changed: 27 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,26 +19,20 @@ Azure Database for MySQL is a managed service that you use to run, manage, and s
19
19
20
20
## Prerequisites
21
21
22
-
::: zone pivot="user-interface-azure-powershell"
22
+
# [PowerShell](#tab/PowerShell)
23
23
24
24
* An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
25
25
* If you want to run the code locally, [Azure PowerShell](/powershell/azure/).
26
26
27
-
::: zone-end
28
-
29
-
::: zone pivot="user-interface-azure-cli"
27
+
# [CLI](#tab/CLI)
30
28
31
29
* An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
32
30
* If you want to run the code locally, [Azure CLI](/cli/azure/).
33
31
34
-
::: zone-end
35
-
36
-
::: zone pivot="user-interface-azure-portal"
32
+
# [Portal](#tab/azure-portal)
37
33
38
34
An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
39
35
40
-
::: zone-end
41
-
42
36
## Create an Azure Database for MySQL server
43
37
44
38
You create an Azure Database for MySQL server with a defined set of compute and storage resources. To learn more, see [Azure Database for MySQL pricing tiers](concepts-pricing-tiers.md). You create the server within an [Azure resource group](../azure-resource-manager/management/overview.md).
@@ -61,7 +55,7 @@ More Azure Database for MySQL template samples can be found in the [quickstart t
61
55
62
56
## Deploy the template
63
57
64
-
::: zone pivot="user-interface-azure-cli"
58
+
# [CLI](#tab/CLI)
65
59
66
60
Use the following interactive code to create a new Azure Database for MySQL server using the template. The code prompts you for the new server name, the name and location of a new resource group, and an administrator account name and password.
67
61
@@ -84,9 +78,7 @@ az deployment group create --resource-group $resourceGroupName --parameters $par
84
78
echo "Press [ENTER] to continue ..."
85
79
```
86
80
87
-
::: zone-end
88
-
89
-
::: zone pivot="user-interface-azure-powershell"
81
+
# [PowerShell](#tab/PowerShell)
90
82
91
83
Use the following interactive code to create a new Azure Database for MySQL server using the template. The code prompts you for the new server name, the name and location of a new resource group, and an administrator account name and password.
Select the following link to deploy the Azure Database for MySQL server template in the Azure portal:
117
107
118
108
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3a%2f%2fraw.githubusercontent.com%2fAzure%2fazure-quickstart-templates%2fmaster%2f101-managed-mysql-with-vnet%2fazuredeploy.json)
119
109
120
110
On the **Deploy Azure Database for MySQL with VNet** page:
121
111
122
-
1. For **Resource group**, either select an existing resource group, or select **Create new**, enter a name for the new resource group, and select **OK**.
112
+
1. For **Resource group**, select **Create new**, enter a name for the new resource group, and select **OK**.
123
113
124
114
2. If you created a new resource group, select a **Location** for the resource group and the new server.
125
115
@@ -129,32 +119,28 @@ On the **Deploy Azure Database for MySQL with VNet** page:
129
119
130
120
4. Change the other default settings if you want:
131
121
132
-
| Setting | Default value | Description |
133
-
| --- | --- | --- |
134
-
|**Subscription**| One of your accounts | The Azure subscription you want to use for the server |
135
-
|**Sku Capacity**|*2*| The vCore capacity, which can be *2*, *4*, *8*, *16*, *32*, or *64*|
136
-
|**Sku Name**|*GP_Gen5_2*| The SKU tier prefix, SKU family, and SKU capacity, joined by underscores (for example, *B_Gen5_1*, *GP_Gen5_16*, and *MO_Gen5_32*) |
137
-
|**Sku Size MB**|*5120*| The storage size, in megabytes, of the Azure Database for MySQL server |
138
-
|**Sku Tier**|*GeneralPurpose*| The deployment tier, such as *Basic*, *GeneralPurpose*, or *MemoryOptimized*|
139
-
|**Sku Family**|*Gen5*|*Gen4* or *Gen5*, which indicates hardware generation for server deployment |
140
-
|**Mysql Version**|*5.7*| The version of MySQL server to deploy, such as *5.6* or *5.7*|
141
-
|**Backup Retention Days**|*7*| The desired period for geo-redundant backup retention, in days |
142
-
|**Geo Redundant Backup**|*Disabled*|*Enabled* or *Disabled*, depending on geo-disaster recovery (Geo-DR) requirements |
143
-
|**Virtual Network Name**|*azure_mysql_vnet*| The name of the virtual network |
144
-
|**Subnet Name**|*azure_mysql_subnet*| The name of the subnet |
145
-
|**Virtual Network Rule Name**|*AllowSubnet*| The name of the virtual network rule allowing the subnet |
146
-
|**Vnet Address Prefix**|*10.0.0.0/16*| The address prefix for the virtual network |
147
-
|**Subnet Prefix**|*10.0.0.0/16*| The address prefix for the subnet |
122
+
***Subscription**: the Azure subscription you want to use for the server.
123
+
***Sku Capacity**: the vCore capacity, which can be *2* (the default), *4*, *8*, *16*, *32*, or *64*.
124
+
***Sku Name**: the SKU tier prefix, SKU family, and SKU capacity, joined by underscores, such as *B_Gen5_1*, *GP_Gen5_2* (the default), or *MO_Gen5_32*.
125
+
***Sku Size MB**: the storage size, in megabytes, of the Azure Database for MySQL server (default *5120*).
126
+
***Sku Tier**: the deployment tier, such as *Basic*, *GeneralPurpose* (the default), or *MemoryOptimized*.
127
+
***Sku Family**: *Gen4* or *Gen5* (the default), which indicates hardware generation for server deployment.
128
+
***Mysql Version**: the version of MySQL server to deploy, such as *5.6* or *5.7* (the default).
129
+
***Backup Retention Days**: the desired period for geo-redundant backup retention, in days (default *7*).
130
+
***Geo Redundant Backup**: *Enabled* or *Disabled* (the default), depending on geo-disaster recovery (Geo-DR) requirements.
131
+
***Virtual Network Name**: the name of the virtual network (default *azure_mysql_vnet*).
132
+
***Subnet Name**: the name of the subnet (default *azure_mysql_subnet*).
133
+
***Virtual Network Rule Name**: the name of the virtual network rule allowing the subnet (default *AllowSubnet*).
134
+
***Vnet Address Prefix**: the address prefix for the virtual network (default *10.0.0.0/16*).
135
+
***Subnet Prefix**: the address prefix for the subnet (default *10.0.0.0/16*).
148
136
149
137
5. Read the terms and conditions, and then select **I agree to the terms and conditions stated above**.
150
138
151
139
6. Select **Purchase**.
152
140
153
-
::: zone-end
154
-
155
141
## Review deployed resources
156
142
157
-
::: zone pivot="user-interface-azure-cli"
143
+
# [CLI](#tab/CLI)
158
144
159
145
Run the following interactive code to view details about your Azure Database for MySQL server. You'll have to enter the name and the resource group of the new server.
160
146
@@ -166,9 +152,7 @@ read resourcegroupName &&
166
152
az resource show --resource-group $resourcegroupName --name $serverName --resource-type "Microsoft.DbForMySQL/servers"
167
153
```
168
154
169
-
::: zone-end
170
-
171
-
::: zone pivot="user-interface-azure-powershell"
155
+
# [PowerShell](#tab/PowerShell)
172
156
173
157
Run the following interactive code to view details about your Azure Database for MySQL server. You'll have to enter the name of the new server.
0 commit comments