Skip to content

Commit 3c673d4

Browse files
Incorporated more FTE feedback.
1 parent 437008f commit 3c673d4

File tree

1 file changed

+27
-53
lines changed

1 file changed

+27
-53
lines changed

articles/mysql/quickstart-create-mysql-server-database-using-arm-template.md

Lines changed: 27 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,20 @@ Azure Database for MySQL is a managed service that you use to run, manage, and s
1919

2020
## Prerequisites
2121

22-
::: zone pivot="user-interface-azure-powershell"
22+
# [PowerShell](#tab/PowerShell)
2323

2424
* An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
2525
* If you want to run the code locally, [Azure PowerShell](/powershell/azure/).
2626

27-
::: zone-end
28-
29-
::: zone pivot="user-interface-azure-cli"
27+
# [CLI](#tab/CLI)
3028

3129
* An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
3230
* If you want to run the code locally, [Azure CLI](/cli/azure/).
3331

34-
::: zone-end
35-
36-
::: zone pivot="user-interface-azure-portal"
32+
# [Portal](#tab/azure-portal)
3733

3834
An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
3935

40-
::: zone-end
41-
4236
## Create an Azure Database for MySQL server
4337

4438
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
6155

6256
## Deploy the template
6357

64-
::: zone pivot="user-interface-azure-cli"
58+
# [CLI](#tab/CLI)
6559

6660
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.
6761

@@ -84,9 +78,7 @@ az deployment group create --resource-group $resourceGroupName --parameters $par
8478
echo "Press [ENTER] to continue ..."
8579
```
8680

87-
::: zone-end
88-
89-
::: zone pivot="user-interface-azure-powershell"
81+
# [PowerShell](#tab/PowerShell)
9082

9183
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.
9284

@@ -109,17 +101,15 @@ New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName `
109101
Read-Host -Prompt "Press [ENTER] to continue ..."
110102
```
111103

112-
::: zone-end
113-
114-
::: zone pivot="user-interface-azure-portal"
104+
# [Portal](#tab/azure-portal)
115105

116106
Select the following link to deploy the Azure Database for MySQL server template in the Azure portal:
117107

118108
[![Deploy to Azure](../media/template-deployments/deploy-to-azure.svg)](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)
119109

120110
On the **Deploy Azure Database for MySQL with VNet** page:
121111

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**.
123113

124114
2. If you created a new resource group, select a **Location** for the resource group and the new server.
125115

@@ -129,32 +119,28 @@ On the **Deploy Azure Database for MySQL with VNet** page:
129119

130120
4. Change the other default settings if you want:
131121

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*).
148136

149137
5. Read the terms and conditions, and then select **I agree to the terms and conditions stated above**.
150138

151139
6. Select **Purchase**.
152140

153-
::: zone-end
154-
155141
## Review deployed resources
156142

157-
::: zone pivot="user-interface-azure-cli"
143+
# [CLI](#tab/CLI)
158144

159145
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.
160146

@@ -166,9 +152,7 @@ read resourcegroupName &&
166152
az resource show --resource-group $resourcegroupName --name $serverName --resource-type "Microsoft.DbForMySQL/servers"
167153
```
168154

169-
::: zone-end
170-
171-
::: zone pivot="user-interface-azure-powershell"
155+
# [PowerShell](#tab/PowerShell)
172156

173157
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.
174158

@@ -178,23 +162,19 @@ Get-AzResource -ResourceType "Microsoft.DBforMySQL/servers" -Name $serverName |
178162
Write-Host "Press [ENTER] to continue..."
179163
```
180164

181-
::: zone-end
182-
183-
::: zone pivot="user-interface-azure-portal"
165+
# [Portal](#tab/azure-portal)
184166

185167
Follow these steps to see an overview of your new Azure Database for MySQL server:
186168

187169
1. In the [Azure portal](https://portal.azure.com), search for and select **Azure Database for MySQL servers**.
188170

189171
2. In the database list, select your new server. The **Overview** page for your new Azure Database for MySQL server appears.
190172

191-
::: zone-end
192-
193173
## Clean up resources
194174

195175
When it's no longer needed, delete the resource group, which deletes the resources in the resource group.
196176

197-
::: zone pivot="user-interface-azure-cli"
177+
# [CLI](#tab/CLI)
198178

199179
```azurecli-interactive
200180
echo "Enter the Resource Group name:" &&
@@ -203,19 +183,15 @@ az group delete --name $resourceGroupName &&
203183
echo "Press [ENTER] to continue ..."
204184
```
205185

206-
::: zone-end
207-
208-
::: zone pivot="user-interface-azure-powershell"
186+
# [PowerShell](#tab/PowerShell)
209187

210188
```azurepowershell-interactive
211189
$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"
212190
Remove-AzResourceGroup -Name $resourceGroupName
213191
Write-Host "Press [ENTER] to continue..."
214192
```
215193

216-
::: zone-end
217-
218-
::: zone pivot="user-interface-azure-portal"
194+
# [Portal](#tab/azure-portal)
219195

220196
1. In the [Azure portal](https://portal.azure.com), search for and select **Resource groups**.
221197

@@ -225,8 +201,6 @@ Write-Host "Press [ENTER] to continue..."
225201

226202
4. In the confirmation dialog box, type the name of your resource group, and then select **Delete**.
227203

228-
::: zone-end
229-
230204
## Next steps
231205

232206
For a step-by-step tutorial that guides you through the process of creating a template, see:

0 commit comments

Comments
 (0)