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/flexible-server/concepts-networking-vnet.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ In the above diagram,
39
39
40
40
1. Azure Database for MySQL flexible server instances are injected into a delegated subnet - 10.0.1.0/24 of virtual network **VNet-1**.
41
41
2. Applications deployed on different subnets within the same virtual network can access the Azure Database for MySQL flexible server instances directly.
42
-
3. Applications deployed on a different virtual network **VNet-2** don't have direct access to Azure Database for MySQL flexible server instances. Before they can access an instance, you must perform a [private DNS zone virtual network peering](#private-dns-zone-and-vnet-peering).
42
+
3. Applications deployed on a different virtual network **VNet-2** don't have direct access to Azure Database for MySQL flexible server instances. Before they can access an instance, you must perform a [private DNS zone virtual network peering](#private-dns-zone-and-virtual-network-peering).
Copy file name to clipboardExpand all lines: articles/mysql/flexible-server/how-to-manage-virtual-network-cli.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: mysql
7
7
ms.subservice: flexible-server
8
8
ms.custom: devx-track-azurecli
9
9
ms.topic: how-to
10
-
ms.date: 9/21/2020
10
+
ms.date: 1/18/2024
11
11
---
12
12
13
13
# Create and manage virtual networks for Azure Database for MySQL - Flexible Server using the Azure CLI
@@ -17,11 +17,11 @@ ms.date: 9/21/2020
17
17
Azure Database for MySQL flexible server supports two types of mutually exclusive network connectivity methods to connect to your Azure Database for MySQL flexible server instance. The two options are:
18
18
19
19
- Public access (allowed IP addresses)
20
-
- Private access (VNet Integration)
20
+
- Private access (virtual network integration)
21
21
22
-
In this article, we will focus on creation of MySQL server with **Private access (VNet Integration)** using Azure CLI. With *Private access (VNet Integration)*, you can deploy your Azure Database for MySQL flexible server instance into your own [Azure Virtual Network](../../virtual-network/virtual-networks-overview.md). Azure Virtual Networks provide private and secure network communication. In Private access, the connections to the Azure Database for MySQL flexible server instance are restricted to only within your virtual network. To learn more about it, refer to [Private access (VNet Integration)](./concepts-networking-vnet.md).
22
+
This article focuses on creation of MySQL server with **Private access (virtual network Integration)** using Azure CLI. With *Private access (virtual network integration)*, you can deploy your Azure Database for MySQL flexible server instance into your own [Azure Virtual Network](../../virtual-network/virtual-networks-overview.md). Azure Virtual Networks provide private and secure network communication. In Private access, the connections to the Azure Database for MySQL flexible server instance are restricted to only within your virtual network. To learn more about it, refer to [Private access (Virtual Network Integration)](./concepts-networking-vnet.md).
23
23
24
-
In Azure Database for MySQL flexible server, you can only deploy the server to a virtual network and subnet during creation of the server. After the Azure Database for MySQL flexible server instance is deployed to a virtual network and subnet, you cannot move it to another virtual network, subnet or to *Public access (allowed IP addresses)*.
24
+
In Azure Database for MySQL flexible server, you can only deploy the server to a virtual network and subnet during creation of the server. After the Azure Database for MySQL flexible server instance is deployed to a virtual network and subnet, you can't move it to another virtual network, subnet or to *Public access (allowed IP addresses)*.
25
25
26
26
## Launch Azure Cloud Shell
27
27
@@ -33,7 +33,7 @@ If you prefer to install and use the CLI locally, this quickstart requires Azure
33
33
34
34
## Prerequisites
35
35
36
-
You'll need to sign in to your account using the [az login](/cli/azure/reference-index#az-login) command. Note the **ID** property, which refers to **Subscription ID** for your Azure account.
36
+
You need to sign in to your account using the [az login](/cli/azure/reference-index#az-login) command. Note the **ID** property, which refers to **Subscription ID** for your Azure account.
37
37
38
38
```azurecli-interactive
39
39
az login
@@ -46,7 +46,8 @@ az account set --subscription <subscription id>
46
46
```
47
47
48
48
## Create an Azure Database for MySQL flexible server instance using CLI
49
-
You can use the `az mysql flexible-server` command to create the Azure Database for MySQL flexible server instance with *Private access (VNet Integration)*. This command uses Private access (VNet Integration) as the default connectivity method. A virtual network and subnet will be created for you if none is provided. You can also provide the already existing virtual network and subnet using subnet ID. <!-- You can provide the **vnet**,**subnet**,**vnet-address-prefix** or**subnet-address-prefix** to customize the virtual network and subnet.--> There are various options to create a Azure Database for MySQL flexible server instance using CLI as shown in the following examples.
49
+
50
+
You can use the `az mysql flexible-server` command to create the Azure Database for MySQL flexible server instance with *Private access (virtual network integration)*. This command uses Private access (virtual network integration) as the default connectivity method. A virtual network and subnet are created for you if none is provided. You can also provide the already existing virtual network and subnet using subnet ID. <!-- You can provide the **vnet**,**subnet**,**vnet-address-prefix** or**subnet-address-prefix** to customize the virtual network and subnet.--> There are various options to create an Azure Database for MySQL flexible server instance using CLI as shown in the following examples.
50
51
51
52
>[!Important]
52
53
> Using this command will delegate the subnet to **Microsoft.DBforMySQL/flexibleServers**. This delegation means that only Azure Database for MySQL flexible server instances can use that subnet. No other Azure resource types can be in the delegated subnet.
@@ -55,29 +56,36 @@ You can use the `az mysql flexible-server` command to create the Azure Database
55
56
Refer to the Azure CLI [reference documentation](/cli/azure/mysql/flexible-server) for the complete list of configurable CLI parameters. For example, in the following commands you can optionally specify the resource group.
56
57
57
58
- Create an Azure Database for MySQL flexible server instance using default virtual network, subnet with default address prefix.
59
+
58
60
```azurecli-interactive
59
61
az mysql flexible-server create
60
62
```
61
-
- Create an Azure Database for MySQL flexible server instance using already existing virtual network and subnet. If provided virtual network and subnet does not exists then virtual network and subnet with default address prefix will be created.
63
+
64
+
- Create an Azure Database for MySQL flexible server instance using already existing virtual network and subnet. If provided virtual network and subnet don't exist, then virtual network and subnet with default address prefix are created.
65
+
62
66
```azurecli-interactive
63
67
az mysql flexible-server create --vnet myVnet --subnet mySubnet
64
68
```
65
69
66
-
- Create an Azure Database for MySQL flexible server instance using already existing virtual network, subnet, and using the subnet ID. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to **Microsoft.DBforMySQL/flexibleServers**, if not already delegated.
70
+
- Create an Azure Database for MySQL flexible server instance using already existing virtual network, subnet, and using the subnet ID. The provided subnet shouldn't have any other resource deployed in it and this subnet are delegated to **Microsoft.DBforMySQL/flexibleServers**, if not already delegated.
71
+
67
72
```azurecli-interactive
68
73
az mysql flexible-server create --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNetName}/subnets/{SubnetName}
69
74
```
75
+
70
76
> [!Note]
71
77
> The virtual network and subnet should be in the same region and subscription as your Azure Database for MySQL flexible server instance.
72
78
<
73
-
- Create an Azure Database for MySQL flexible server instance using a new virtual network, subnet with non-default address prefix.
79
+
- Create an Azure Database for MySQL flexible server instance using a new virtual network, subnet with nondefault address prefix.
80
+
74
81
```azurecli-interactive
75
82
az mysql flexible-server create --vnet myVnet --address-prefixes 10.0.0.0/24 --subnet mySubnet --subnet-prefixes 10.0.0.0/24
76
83
```
77
-
Refer to the Azure CLI [reference documentation](/cli/azure/mysql/flexible-server) for the complete list of configurable CLI parameters.
78
84
85
+
Refer to the Azure CLI [reference documentation](/cli/azure/mysql/flexible-server) for the complete list of configurable CLI parameters.
79
86
80
87
## Next steps
88
+
81
89
- Learn more about [networking in Azure Database for MySQL flexible server](./concepts-networking.md).
82
90
- [Create and manage Azure Database for MySQL flexible server virtual network using Azure portal](./how-to-manage-virtual-network-portal.md).
83
-
- Understand more about [Azure Database for MySQL flexible server virtual network](./concepts-networking-vnet.md#private-access-vnet-integration).
91
+
- Understand more about [Azure Database for MySQL flexible server virtual network](./concepts-networking-vnet.md#private-access-virtual-network-integration).
Azure Database for MySQL flexible server supports two types of mutually exclusive network connectivity methods to connect to your Azure Database for MySQL flexible server instance. The two options are:
18
17
19
18
- Public access (allowed IP addresses)
20
-
- Private access (VNet Integration)
19
+
- Private access (virtual network integration)
21
20
22
-
In this article, we will focus on creation of MySQL server with **Private access (VNet Integration)** using Azure portal. With Private access (VNet Integration), you can deploy your Azure Database for MySQL flexible server instance into your own [Azure Virtual Network](../../virtual-network/virtual-networks-overview.md). Azure Virtual Networks provide private and secure network communication. With private access, connections to the MySQL server are restricted to your virtual network. To learn more about it, refer to [Private access (VNet Integration)](./concepts-networking-vnet.md#private-access-vnet-integration).
21
+
This article focuses on creation of MySQL server with **Private access (VNet Integration)** using Azure portal. With Private access (virtual network integration), you can deploy your Azure Database for MySQL flexible server instance into your own [Azure Virtual Network](../../virtual-network/virtual-networks-overview.md). Azure Virtual Networks provide private and secure network communication. With private access, connections to the MySQL server are restricted to your virtual network. To learn more about it, refer to [Private access (virtual network Integration)](./concepts-networking-vnet.md#private-access-virtual-network-integration).
23
22
24
23
>[!Note]
25
24
>You can deploy your Azure Database for MySQL flexible server instance into a virtual network and subnet during server creation. After the Azure Database for MySQL flexible server instance is deployed, you cannot move it into another virtual network, subnet or to *Public access (allowed IP addresses)*.
@@ -61,5 +60,5 @@ To create an Azure Database for MySQL flexible server instance in a virtual netw
61
60
## Next steps
62
61
63
62
-[Create and manage Azure Database for MySQL flexible server virtual network using Azure CLI](./how-to-manage-virtual-network-cli.md).
64
-
- Learn more about [networking in Azure Database for MySQL flexible server](./concepts-networking.md)
65
-
- Understand more about [Azure Database for MySQL flexible server virtual network](./concepts-networking-vnet.md#private-access-vnet-integration).
63
+
- Learn more about [networking in Azure Database for MySQL flexible server](./concepts-networking.md).
64
+
- Understand more about [Azure Database for MySQL flexible server virtual network](./concepts-networking-vnet.md#private-access-virtual-network-integration).
0 commit comments