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
This article shows you how to manage your flexible server deployed in Azure. Management tasks include compute and storage scaling, admin password reset, and viewing server details.
18
+
This article shows you how to manage your Azure Database for PostgreSQL flexible server instance deployed in Azure. Management tasks include compute and storage scaling, admin password reset, and viewing server details.
19
19
20
20
## Prerequisites
21
21
@@ -36,7 +36,7 @@ az account set --subscription <subscription id>
36
36
```
37
37
38
38
> [!Important]
39
-
> If you haven't created a flexible server yet, you'll need to do so to follow this how-to guide.
39
+
> If you haven't created Azure Database for PostgreSQL flexible server instance yet, you need to do so to follow this how-to guide.
40
40
41
41
## Scale compute and storage
42
42
@@ -61,23 +61,23 @@ storage-size | 6144 | Enter the storage capacity of the server in megabytes. The
61
61
> [!IMPORTANT]
62
62
> You cannot scale down storage.
63
63
64
-
## Manage PostgreSQL databases on a server
64
+
## Manage Azure Database for PostgreSQL flexible server databases on a server
65
65
66
-
There are a number of applications you can use to connect to your Azure Database for PostgreSQL server. If your client computer has PostgreSQL installed, you can use a local instance of [psql](https://www.postgresql.org/docs/current/static/app-psql.html). Let's now use the psql command-line tool to connect to the Azure Database for PostgreSQL server.
66
+
There are a number of applications you can use to connect to your Azure Database for PostgreSQL flexible server instance. If your client computer has PostgreSQL installed, you can use a local instance of [psql](https://www.postgresql.org/docs/current/static/app-psql.html). Let's now use the psql command-line tool to connect to the Azure Database for PostgreSQL flexible server instance.
For example, the following command connects to the default database called **postgres** on your PostgreSQL server **mydemoserver.postgres.database.azure.com** through your access credentials. When you're prompted, enter the `<server_admin_password>` that you chose.
74
+
For example, the following command connects to the default database called **postgres** on your Azure Database for PostgreSQL flexible server instance**mydemoserver.postgres.database.azure.com** through your access credentials. When you're prompted, enter the `<server_admin_password>` that you chose.
After you connect, the psql tool displays a **postgres** prompt where you can enter SQL commands. A warning will appear in the initial connection output if the version of psql you're using is different from the version on the Azure Database for PostgreSQL server.
80
+
After you connect, the psql tool displays a **postgres** prompt where you can enter SQL commands. A warning will appear in the initial connection output if the version of psql you're using is different from the version on the Azure Database for PostgreSQL flexible server instance.
81
81
82
82
Example psql output:
83
83
@@ -112,7 +112,7 @@ There are a number of applications you can use to connect to your Azure Database
112
112
113
113
4. Type `\q` and selectEnter to quit psql.
114
114
115
-
In this section, you connected to the Azure Database for PostgreSQL server via psql and created a blank user database.
115
+
In this section, you connected to the Azure Database for PostgreSQL flexible server instance via psql and created a blank user database.
To delete the Azure Database for PostgreSQL flexible server, run the [az postgres flexible-server delete](/cli/azure/postgres/flexible-server#az-postgresql-flexible-server-delete) command.
134
+
To delete the Azure Database for PostgreSQL flexible server instance, run the [az postgres flexible-server delete](/cli/azure/postgres/flexible-server#az-postgresql-flexible-server-delete) command.
135
135
136
136
```azurecli-interactive
137
137
az postgres flexible-server delete --resource-group myresourcegroup --name mydemoserver
This article shows you how to manage your Azure Database for PostgreSQL - Flexible Server. Management tasks include compute and storage scaling, admin password reset, and viewing server details.
18
+
This article shows you how to manage your Azure Database for PostgreSQL flexible server instance. Management tasks include compute and storage scaling, admin password reset, and viewing server details.
19
19
20
20
## Sign in
21
21
22
-
Sign in to the [Azure portal](https://portal.azure.com). Go to your flexible server resource in the Azure portal.
22
+
Sign in to the [Azure portal](https://portal.azure.com). Go to your Azure Database for PostgreSQL flexible server resource in the Azure portal.
23
23
24
24
## Scale compute and storage
25
25
@@ -32,10 +32,10 @@ After server creation you can scale between the various [pricing tiers](https://
32
32
2. You can change the **Compute Tier** , **vCore**, **Storage** to scale up the server using higher compute tier or scale up within the same tier by increasing storage or vCores to your desired value.
> :::image type="content" source="./media/howto-manage-server-portal/scale-server.png" alt-text="Scaling storage for Azure Database for PostgreSQL flexible server.":::
36
36
37
37
> [!Important]
38
-
> - Storage cannot be scaled down.
38
+
> - Storage can't be scaled down.
39
39
> - Scaling vCores causes a server restart.
40
40
41
41
3. Select **OK** to save changes.
@@ -48,7 +48,7 @@ You can change the administrator role's password using the Azure portal.
48
48
2. Enter a new password and confirm the password. The textbox will prompt you about password complexity requirements.
49
49
50
50
> [!div class="mx-imgBorder"]
51
-
> :::image type="content" source="./media/howto-manage-server-portal/reset-password.png" alt-text="reset your password for flexible server":::
51
+
> :::image type="content" source="./media/howto-manage-server-portal/reset-password.png" alt-text="Reset your password for Azure Database for PostgreSQL flexible server.":::
52
52
53
53
3. Select **Save** to save the new password.
54
54
@@ -59,13 +59,13 @@ You can delete your server if you no longer need it.
59
59
1. Select your server in the Azure portal. In the **Overview** window select **Delete**.
60
60
2. Type the name of the server into the input box to confirm that you want to delete the server.
61
61
62
-
:::image type="content" source="./media/howto-manage-server-portal/delete-server.png" alt-text="delete the flexible server":::
62
+
:::image type="content" source="./media/howto-manage-server-portal/delete-server.png" alt-text="Delete the Azure Database for PostgreSQL flexible server instance.":::
63
63
64
64
> [!IMPORTANT]
65
65
> Deleting a server is irreversible.
66
66
67
67
> [!div class="mx-imgBorder"]
68
-
> 
68
+
> 
Azure Database for PostgreSQL - Flexible Server supports two types of mutually exclusive network connectivity methods to connect to your flexible server. The two options are:
20
-
* Public access (allowed IP addresses). That method can be further secured by using [Private Link](./concepts-networking-private-link.md) based networking with Azure Database for PostgreSQL - Flexible Server in Preview.
19
+
Azure Database for PostgreSQL flexible server supports two types of mutually exclusive network connectivity methods to connect to your flexible server. The two options are:
20
+
* Public access (allowed IP addresses). That method can be further secured by using [Private Link](./concepts-networking-private-link.md) based networking with Azure Database for PostgreSQL flexible server in Preview.
21
21
* Private access (VNET Integration)
22
22
23
-
In this article, we'll focus on creation of PostgreSQL server with **Private access (VNet Integration)** using Azure CLI. With *Private access (VNET Integration)*, you can deploy your flexible server 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 PostgreSQL server are restricted to only within your virtual network. To learn more about it, refer to [Private access (VNet Integration)](./concepts-networking.md#private-access-vnet-integration).
23
+
In this article, we focus on creation of an Azure Database for PostgreSQL flexible server instance with **Private access (VNet Integration)** using Azure CLI. With *Private access (VNET Integration)*, you can deploy your Azure Database for PostgreSQL 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 PostgreSQL flexible server instance are restricted to only within your virtual network. To learn more about it, refer to [Private access (VNet Integration)](./concepts-networking.md#private-access-vnet-integration).
24
24
25
-
In Azure Database for PostgreSQL - Flexible Server, you can only deploy the server to a virtual network and subnet during creation of the server. After the flexible server 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
+
In Azure Database for PostgreSQL flexible server, you can only deploy the server to a virtual network and subnet during creation of the server. After the Azure Database for PostgreSQL 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)*.
26
26
27
27
## Launch Azure Cloud Shell
28
28
@@ -46,34 +46,34 @@ Select the specific subscription under your account using [az account set](/cli/
46
46
az account set --subscription <subscription id>
47
47
```
48
48
49
-
## Create Azure Database for PostgreSQL - Flexible Server using CLI
50
-
You can use the `az postgres flexible-server` command to create the flexible server 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 the 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 flexible server using CLI as shown in the examples below.
49
+
## Create an Azure Database for PostgreSQL flexible server instance using Azure CLI
50
+
You can use the `az postgres flexible-server` command to create the Azure Database for PostgreSQL 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 the 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 PostgreSQL flexible server instance using CLI as shown in the examples below.
51
51
52
52
>[!Important]
53
-
> Using this command will delegate the subnet to **Microsoft.DBforPostgreSQL/flexibleServers**. This delegation means that only Azure Database for PostgreSQL Flexible Servers can use that subnet. No other Azure resource types can be in the delegated subnet.
53
+
> Using this command will delegate the subnet to **Microsoft.DBforPostgreSQL/flexibleServers**. This delegation means that only Azure Database for PostgreSQL flexible server instances can use that subnet. No other Azure resource types can be in the delegated subnet.
54
54
>
55
55
Refer to the Azure CLI reference documentation <!--FIXME --> for the complete list of configurable CLI parameters. For example, in the below commands you can optionally specify the resource group.
56
56
57
-
- Create a flexible server using default virtual network, subnet with default address prefix
57
+
- Create an Azure Database for PostgreSQL flexible server instance using default virtual network, subnet with default address prefix
58
58
```azurecli-interactive
59
59
az postgres flexible-server create
60
60
```
61
-
- Create a flexible server using already existing virtual network and subnet. If provided virtual network and subnet do not exist, then virtual network and subnet with default address prefix will be created.
61
+
- Create an Azure Database for PostgreSQL flexible server instance using already existing virtual network and subnet. If provided virtual network and subnet do not exist, then virtual network and subnet with default address prefix will be created.
62
62
```azurecli-interactive
63
63
az postgres flexible-server create --vnet myVnet --subnet mySubnet
64
64
```
65
-
- Create a flexible server 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 will be delegated to **Microsoft.DBforPostgreSQL/flexibleServers**, if not already delegated.
65
+
- Create an Azure Database for PostgreSQL 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 will be delegated to **Microsoft.DBforPostgreSQL/flexibleServers**, if not already delegated.
66
66
```azurecli-interactive
67
67
az postgres flexible-server create --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNetName}/subnets/{SubnetName}
68
68
```
69
69
> [!Note]
70
-
> - The virtual network and subnet should be in the same region and subscription as your flexible server.
70
+
> - The virtual network and subnet should be in the same region and subscription as your Azure Database for PostgreSQL flexible server instance.
71
71
> - The virtual network should not have any resource lock set at the VNET or subnet level. Make sure to remove any lock (**Delete** or **Read only**) from your VNET and all subnets before creating the server in a virtual network, and you can set it back after server creation.
72
72
73
73
> [!IMPORTANT]
74
74
> The names including `AzureFirewallSubnet`, `AzureFirewallManagementSubnet`, `AzureBastionSubnet` and `GatewaySubnet` are reserved names within Azure. Please do not use these as your subnet name.
75
75
76
-
- Create a flexible server using new virtual network, subnet with nondefault address prefix
76
+
- Create an Azure Database for PostgreSQL flexible server instance using new virtual network, subnet with nondefault address prefix.
0 commit comments