Skip to content

Commit 1e45f22

Browse files
Merge pull request #261549 from v-thepet/postgres-scripts
PostgreSQL: scripts folder
2 parents 653591a + c5f0403 commit 1e45f22

7 files changed

+51
-50
lines changed

articles/postgresql/scripts/sample-change-server-configuration.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Azure CLI script - Change server configurations (PostgreSQL)
2+
title: Azure CLI script - Change server configurations
33
description: This sample CLI script lists all available server configuration options and updates the value of one of the options.
44
ms.author: sunila
55
author: sunilagarwal
@@ -10,11 +10,11 @@ ms.custom: mvc, devx-track-azurecli
1010
ms.date: 01/26/2022
1111
---
1212

13-
# List and update configurations of an Azure Database for PostgreSQL server using Azure CLI
13+
# List and update configurations of an Azure Database for PostgreSQL - Flexible Server instance using Azure CLI
1414

1515
[!INCLUDE[applies-to-postgres-single-flexible-server](../includes/applies-to-postgresql-single-flexible-server.md)]
1616

17-
This sample CLI script lists all available configuration parameters as well as their allowable values for Azure Database for PostgreSQL server, and sets the *log_retention_days* to a value that is other than the default one.
17+
This sample CLI script lists all available configuration parameters as well as their allowable values for Azure Database for PostgreSQL flexible server, and sets the *log_retention_days* to a value that is other than the default one.
1818

1919
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2020

@@ -43,14 +43,14 @@ This script uses the commands outlined in the following table:
4343
| **Command** | **Notes** |
4444
|---|---|
4545
| [az group create](/cli/azure/group) | Creates a resource group in which all resources are stored. |
46-
| [az postgres server create](/cli/azure/postgres/server) | Creates a PostgreSQL server that hosts the databases. |
47-
| [az postgres server configuration list](/cli/azure/postgres/server/configuration) | List the configurations of an Azure Database for PostgreSQL server. |
48-
| [az postgres server configuration set](/cli/azure/postgres/server/configuration) | Update the configuration of an Azure Database for PostgreSQL server. |
49-
| [az postgres server configuration show](/cli/azure/postgres/server/configuration) | Show the configuration of an Azure Database for PostgreSQL server. |
46+
| [az postgres server create](/cli/azure/postgres/server) | Creates an Azure Database for PostgreSQL flexible server instance that hosts the databases. |
47+
| [az postgres server configuration list](/cli/azure/postgres/server/configuration) | List the configurations of an Azure Database for PostgreSQL flexible server instance. |
48+
| [az postgres server configuration set](/cli/azure/postgres/server/configuration) | Update the configuration of an Azure Database for PostgreSQL flexible server instance. |
49+
| [az postgres server configuration show](/cli/azure/postgres/server/configuration) | Show the configuration of an Azure Database for PostgreSQL flexible server instance. |
5050
| [az group delete](/cli/azure/group) | Deletes a resource group including all nested resources. |
5151

5252
## Next steps
5353

5454
- Read more information on the Azure CLI: [Azure CLI documentation](/cli/azure).
55-
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL](../sample-scripts-azure-cli.md)
56-
- For more information on server parameters, see [How To Configure server parameters in Azure portal](../howto-configure-server-parameters-using-portal.md).
55+
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL- Flexible Server](../sample-scripts-azure-cli.md)
56+
- For more information on server parameters, see [How to configure server parameters in Azure portal](../howto-configure-server-parameters-using-portal.md).

articles/postgresql/scripts/sample-create-server-and-firewall-rule.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Azure CLI Script - Create an Azure Database for PostgreSQL
3-
description: Azure CLI Script Sample - Creates an Azure Database for PostgreSQL server and configures a server-level firewall rule.
2+
title: Azure CLI Script - Create
3+
description: Azure CLI Script Sample - Creates an Azure Database for PostgreSQL - Flexible Server instance and configures a server-level firewall rule.
44
ms.author: sunila
55
author: sunilagarwal
66
ms.service: postgresql
@@ -10,11 +10,11 @@ ms.topic: sample
1010
ms.date: 01/26/2022
1111
---
1212

13-
# Create an Azure Database for PostgreSQL server and configure a firewall rule using the Azure CLI
13+
# Create an Azure Database for PostgreSQL - Flexible Server instance and configure a firewall rule using the Azure CLI
1414

1515
[!INCLUDE[applies-to-postgres-single-flexible-server](../includes/applies-to-postgresql-single-flexible-server.md)]
1616

17-
This sample CLI script creates an Azure Database for PostgreSQL server and configures a server-level firewall rule. Once the script has been successfully run, the PostgreSQL server can be accessed from all Azure services and the configured IP address.
17+
This sample CLI script creates an Azure Database for PostgreSQL flexible server instance and configures a server-level firewall rule. Once the script has been successfully run, the Azure Database for PostgreSQL flexible server instance can be accessed from all Azure services and the configured IP address.
1818

1919
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2020

@@ -43,11 +43,11 @@ This script uses the commands outlined in the following table:
4343
| **Command** | **Notes** |
4444
|---|---|
4545
| [az group create](/cli/azure/group) | Creates a resource group in which all resources are stored. |
46-
| [az postgres server create](/cli/azure/postgres/server) | Creates a PostgreSQL server that hosts the databases. |
46+
| [az postgres server create](/cli/azure/postgres/server) | Creates an Azure Database for PostgreSQL flexible server instance that hosts the databases. |
4747
| [az postgres server firewall create](/cli/azure/postgres/server/firewall-rule) | Creates a firewall rule to allow access to the server and databases under it from the entered IP address range. |
4848
| [az group delete](/cli/azure/group) | Deletes a resource group including all nested resources. |
4949

5050
## Next steps
5151

5252
- Read more information on the Azure CLI: [Azure CLI documentation](/cli/azure)
53-
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL](../sample-scripts-azure-cli.md)
53+
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL - Flexible Server](../sample-scripts-azure-cli.md)

articles/postgresql/scripts/sample-create-server-with-vnet-rule.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: CLI script - Create server with vNet rule - Azure Database for PostgreSQL
3-
description: This sample CLI script creates an Azure Database for PostgreSQL server with a service endpoint on a virtual network and configures a vNet rule.
2+
title: CLI script - Create with vNet rule
3+
description: This sample CLI script creates an Azure Database for PostgreSQL - Flexible Server instance with a service endpoint on a virtual network and configures a vNet rule.
44
author: savjani
55
ms.author: pariks
66
ms.service: postgresql
@@ -10,11 +10,11 @@ ms.custom: mvc, devx-track-azurecli
1010
ms.date: 01/26/2022
1111
---
1212

13-
# Create a PostgreSQL server and configure a vNet rule using the Azure CLI
13+
# Create an Azure Database for PostgreSQL - Flexible Server instance and configure a vNet rule using the Azure CLI
1414

1515
[!INCLUDE[applies-to-postgres-single-flexible-server](../includes/applies-to-postgresql-single-flexible-server.md)]
1616

17-
This sample CLI script creates an Azure Database for PostgreSQL server and configures a vNet rule.
17+
This sample CLI script creates an Azure Database for PostgreSQL flexible server instance and configures a vNet rule.
1818

1919
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2020

@@ -43,15 +43,15 @@ This script uses the commands outlined in the following table:
4343
| **Command** | **Notes** |
4444
|---|---|
4545
| [az group create](/cli/azure/group#az-group-create) | Creates a resource group in which all resources are stored. |
46-
| [az postgresql server create](/cli/azure/postgres/server/vnet-rule#az-postgres-server-vnet-rule-create) | Creates a PostgreSQL server that hosts the databases. |
47-
| [az network vnet list-endpoint-services](/cli/azure/network/vnet#az-network-vnet-list-endpoint-services#az-network-vnet-list-endpoint-services) | List which services support VNET service tunneling in a given region. |
46+
| [az postgresql server create](/cli/azure/postgres/server/vnet-rule#az-postgres-server-vnet-rule-create) | Creates an Azure Database for PostgreSQL flexible server instance that hosts the databases. |
47+
| [az network vnet list-endpoint-services](/cli/azure/network/vnet#az-network-vnet-list-endpoint-services#az-network-vnet-list-endpoint-services) | Lists which services support VNET service tunneling in a given region. |
4848
| [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create) | Creates a virtual network. |
49-
| [az network vnet subnet create](/cli/azure/network/vnet#az-network-vnet-subnet-create) | Create a subnet and associate an existing NSG and route table. |
49+
| [az network vnet subnet create](/cli/azure/network/vnet#az-network-vnet-subnet-create) | Creates a subnet and associates an existing NSG and route table. |
5050
| [az network vnet subnet show](/cli/azure/network/vnet#az-network-vnet-subnet-show) |Shows details of a subnet. |
51-
| [az postgresql server vnet-rule create](/cli/azure/postgres/server/vnet-rule#az-postgres-server-vnet-rule-create) | Create a virtual network rule to allows access to a PostgreSQL server. |
51+
| [az postgresql server vnet-rule create](/cli/azure/postgres/server/vnet-rule#az-postgres-server-vnet-rule-create) | Creates a virtual network rule to allow access to an Azure Database for PostgreSQL flexible server instance. |
5252
| [az group delete](/cli/azure/group#az-group-delete) | Deletes a resource group including all nested resources. |
5353

5454
## Next steps
5555

5656
- Read more information on the Azure CLI: [Azure CLI documentation](/cli/azure).
57-
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL](../sample-scripts-azure-cli.md)
57+
- Try more scripts: [Azure CLI samples for Azure Database for PostgreSQL - Flexible Server](../sample-scripts-azure-cli.md)

articles/postgresql/scripts/sample-point-in-time-restore.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Azure CLI script - Restore an Azure Database for PostgreSQL server
3-
description: This sample Azure CLI script shows how to restore an Azure Database for PostgreSQL server and its databases to a previous point in time.
2+
title: Azure CLI script - Restore
3+
description: This sample Azure CLI script shows how to restore an Azure Database for PostgreSQL - Flexible Server instance and its databases to a previous point in time.
44
ms.author: alkuchar
55
author: AwdotiaRomanowna
66
ms.service: postgresql
@@ -10,11 +10,11 @@ ms.custom: mvc, devx-track-azurecli
1010
ms.date: 02/11/2022
1111
---
1212

13-
# Restore an Azure Database for PostgreSQL server using Azure CLI
13+
# Restore an Azure Database for PostgreSQL - Flexible Server instance using Azure CLI
1414

1515
[!INCLUDE[applies-to-postgres-single-flexible-server](../includes/applies-to-postgresql-single-flexible-server.md)]
1616

17-
This sample CLI script restores a single Azure Database for PostgreSQL server to a previous point in time.
17+
This sample CLI script restores a single Azure Database for PostgreSQL flexible server instance to a previous point in time.
1818

1919
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2020

@@ -43,12 +43,12 @@ This script uses the commands outlined in the following table:
4343
| **Command** | **Notes** |
4444
|---|---|
4545
| [az group create](/cli/azure/group) | Creates a resource group in which all resources are stored. |
46-
| [az postgresql server create](/cli/azure/postgres/server#az-postgres-server-create) | Creates a PostgreSQL server that hosts the databases. |
46+
| [az postgresql server create](/cli/azure/postgres/server#az-postgres-server-create) | Creates an Azure Database for PostgreSQL flexible server instance that hosts the databases. |
4747
| [az postgresql server restore](/cli/azure/postgres/server#az-postgres-server-restore) | Restore a server from backup. |
4848
| [az group delete](/cli/azure/group) | Deletes a resource group including all nested resources. |
4949

5050
## Next steps
5151

5252
- Read more information on the Azure CLI: [Azure CLI documentation](/cli/azure).
53-
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL](../sample-scripts-azure-cli.md)
54-
- [How to backup and restore a server in Azure Database for PostgreSQL using the Azure portal](../howto-restore-server-portal.md)
53+
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL - Flexible Server](../sample-scripts-azure-cli.md)
54+
- [How to backup and restore a server in Azure Database for PostgreSQL - Flexible Server using the Azure portal](../howto-restore-server-portal.md)

articles/postgresql/scripts/sample-scale-server-up-or-down.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Azure CLI script - Scale and monitor Azure Database for PostgreSQL
3-
description: Azure CLI Script Sample - Scale Azure Database for PostgreSQL server to a different performance level after querying the metrics.
2+
title: Azure CLI script - Scale and monitor
3+
description: Azure CLI Script Sample - Scale an Azure Database for PostgreSQL - Flexible Server instance to a different performance level after querying the metrics.
44
ms.author: sunila
55
author: sunilagarwal
66
ms.service: postgresql
@@ -9,11 +9,11 @@ ms.custom: mvc, devx-track-azurecli
99
ms.topic: sample
1010
ms.date: 01/26/2022
1111
---
12-
# Monitor and scale a single PostgreSQL server using Azure CLI
12+
# Monitor and scale a single Azure Database for PostgreSQL - Flexible Server instance using Azure CLI
1313

1414
[!INCLUDE[applies-to-postgres-single-flexible-server](../includes/applies-to-postgresql-single-flexible-server.md)]
1515

16-
This sample CLI script scales compute and storage for a single Azure Database for PostgreSQL server after querying the metrics. Compute can scale up or down. Storage can only scale up.
16+
This sample CLI script scales compute and storage for a single Azure Database for PostgreSQL flexible server instance after querying the metrics. Compute can scale up or down. Storage can only scale up.
1717

1818
> [!IMPORTANT]
1919
> Storage can only be scaled up, not down.
@@ -45,13 +45,13 @@ This script uses the commands outlined in the following table:
4545
| **Command** | **Notes** |
4646
|---|---|
4747
| [az group create](/cli/azure/group) | Creates a resource group in which all resources are stored. |
48-
| [az postgres server create](/cli/azure/postgres/server#az-postgres-server-create) | Creates a PostgreSQL server that hosts the databases. |
49-
| [az postgres server update](/cli/azure/postgres/server#az-postgres-server-update) | Updates properties of the PostgreSQL server. |
50-
| [az monitor metrics list](/cli/azure/monitor/metrics) | List the metric value for the resources. |
48+
| [az postgres server create](/cli/azure/postgres/server#az-postgres-server-create) | Creates an Azure Database for PostgreSQL flexible server instance that hosts the databases. |
49+
| [az postgres server update](/cli/azure/postgres/server#az-postgres-server-update) | Updates properties of the Azure Database for PostgreSQL flexible server instance. |
50+
| [az monitor metrics list](/cli/azure/monitor/metrics) | Lists the metric value for the resources. |
5151
| [az group delete](/cli/azure/group) | Deletes a resource group including all nested resources. |
5252

5353
## Next steps
5454

55-
- Learn more about [Azure Database for PostgreSQL compute and storage](../concepts-pricing-tiers.md)
56-
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL](../sample-scripts-azure-cli.md)
55+
- Learn more about [Azure Database for PostgreSQL - Flexible Server compute and storage](../concepts-pricing-tiers.md)
56+
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL - Flexible Server](../sample-scripts-azure-cli.md)
5757
- Learn more about the [Azure CLI](/cli/azure)

articles/postgresql/scripts/sample-server-logs.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Azure CLI script - Download server logs in Azure Database for PostgreSQL
3-
description: This sample Azure CLI script shows how to enable and download the server logs of an Azure Database for PostgreSQL server.
2+
title: Azure CLI script - Download server logs
3+
description: This sample Azure CLI script shows how to enable and download the server logs of an Azure Database for PostgreSQL - Flexible Server instance.
44
ms.author: sunila
55
author: sunilagarwal
66
ms.service: postgresql
@@ -10,11 +10,11 @@ ms.custom: mvc, devx-track-azurecli
1010
ms.date: 01/26/2022
1111
---
1212

13-
# Enable and download server slow query logs of an Azure Database for PostgreSQL server using Azure CLI
13+
# Enable and download server slow query logs of an Azure Database for PostgreSQL - Flexible Server instance using Azure CLI
1414

1515
[!INCLUDE[applies-to-postgres-single-flexible-server](../includes/applies-to-postgresql-single-flexible-server.md)]
1616

17-
This sample CLI script enables and downloads the slow query logs of a single Azure Database for PostgreSQL server.
17+
This sample CLI script enables and downloads the slow query logs of a single Azure Database for PostgreSQL flexible server instance.
1818

1919
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2020

@@ -43,15 +43,15 @@ This script uses the commands outlined in the following table:
4343
| **Command** | **Notes** |
4444
|---|---|
4545
| [az group create](/cli/azure/group) | Creates a resource group in which all resources are stored. |
46-
| [az postgres server create](/cli/azure/postgres/server) | Creates a PostgreSQL server that hosts the databases. |
47-
| [az postgres server configuration list](/cli/azure/postgres/server/configuration) | List the configuration values for a server. |
48-
| [az postgres server configuration set](/cli/azure/postgres/server/configuration) | Update the configuration of a server. |
49-
| [az postgres server-logs list](/cli/azure/postgres/server-logs) | List log files for a server. |
50-
| [az postgres server-logs download](/cli/azure/postgres/server-logs) | Download log files. |
46+
| [az postgres server create](/cli/azure/postgres/server) | Creates an Azure Database for PostgreSQL flexible server instance that hosts the databases. |
47+
| [az postgres server configuration list](/cli/azure/postgres/server/configuration) | Lists the configuration values for a server. |
48+
| [az postgres server configuration set](/cli/azure/postgres/server/configuration) | Updates the configuration of a server. |
49+
| [az postgres server-logs list](/cli/azure/postgres/server-logs) | Lists log files for a server. |
50+
| [az postgres server-logs download](/cli/azure/postgres/server-logs) | Downloads log files. |
5151
| [az group delete](/cli/azure/group) | Deletes a resource group including all nested resources. |
5252

5353
## Next steps
5454

5555
- Read more information on the Azure CLI: [Azure CLI documentation](/cli/azure).
56-
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL](../sample-scripts-azure-cli.md)
56+
- Try additional scripts: [Azure CLI samples for Azure Database for PostgreSQL - Flexible Server instance](../sample-scripts-azure-cli.md)
5757
- [Configure and access server logs in the Azure portal](../howto-configure-server-logs-in-portal.md)

docfx.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,7 @@
14101410
"articles/openshift/**/*.yml": "Azure Red Hat OpenShift",
14111411
"articles/partner-solutions/**/*.md": "Azure Native ISV Services",
14121412
"articles/partner-solutions/**/*.yml": "Azure Native ISV Services",
1413+
"articles/postgresql/scripts/**/*.md": "Azure Database for PostgreSQL - Flexible Server",
14131414
"articles/postgresql/flexible-server/**/*.md": "Azure Database for PostgreSQL - Flexible Server",
14141415
"articles/purview/**/*.md": "Microsoft Purview",
14151416
"articles/purview/**/*.yml": "Microsoft Purview",

0 commit comments

Comments
 (0)