subscription |
Enter the name or identifier of the subscription in which you want to create the resource. |
A subscription is an agreement with Microsoft to use one or more Microsoft cloud platforms or services, for which charges accrue based on either a per-user license fee or on cloud-based resource consumption. If you have multiple subscriptions, choose the subscription in which you'd like to be billed for the resource. |
An existing Azure Database for PostgreSQL flexible server instance can be moved to a different subscription from the one it was originally created. For more information, see Move Azure resources to a new resource group or subscription. |
resource-group |
The resource group in the selected subscription, in which you want to create the resource. It can be an existing resource group or, if it doesn't exist, it's created. |
A resource group is a container that holds related resources for an Azure solution. The resource group can include all the resources for the solution, or only those resources that you want to manage as a group. You decide how you want to allocate resources to resource groups based on what makes the most sense for your organization. Generally, add resources that share the same lifecycle to the same resource group so you can easily deploy, update, and delete them as a group |
An existing Azure Database for PostgreSQL flexible server instance can be moved to a different subscription from the one it was originally created. For more information, see Move Azure resources to a new resource group or subscription. |
name |
The name that you want to assign to the server. |
A unique name that identifies your Azure Database for PostgreSQL flexible server instance. The domain name postgres.database.azure.com is appended to the server name you provide, to conform the fully qualified host name by which you can use a Domain Naming System server to resolve the IP address of your instance. |
Although the server name can't be changed after server creation, you can use the point in time recovery feature, to restore the server under a different name. An alternative approach to continue using the existing server but being able to refer to it using a different server name, would use the virtual endpoints to create a writer endpoint with the new desired name. With this approach, you could refer to the instance by its original name, or that assigned to the write virtual endpoint. |
region |
The name of one of the regions in which the service is supported, and is more adequate for you to deploy your instance. |
Compliance, data residency, pricing, proximity to your users, or availability of other services in the same region, are some of the requirements you should use when choosing the region. |
The service doesn't offer a feature to automatically and transparently relocate an instance to a different region. |
version |
The version selected by default. |
You can select among the list of major versions of PostgreSQL currently supported by the service. Currently those versions are: 17 (preview), 16, 15, 14, 13, 12, 11 |
|
zone |
Set it to 1 . This number represents your preferred logical availability zone. |
You can choose in which availability zone you want your server to be deployed. Being able to choose the availability zone in which your instance is deployed, is useful to colocate it with your application. If you don't specify this parameter, a default availability zone is automatically assigned to your instance during its creation. |
Although the availability zone in which an instance is deployed can't be changed after its creation, you can use the point in time recovery feature to restore the server under a different name on a different availability zone. |
password-auth |
Set it to enabled . |
Although the recommended authentication method is Microsoft Entra authentication, which you can configure using the --active-directory-auth parameter, for the sake of simplicity, in this quickstart let's select use PostgreSQL authentication. By selecting setting this parameter to enabled , you're required to also provide values for the --admin-user and --admin-password parameters. If you set --active-directory-auth to enabled , you can use the az postgres flexible-server ad-admin commands to create or remove Microsoft Entra users or groups as PostgreSQL administrators. |
Can be enabled or disabled after server creation. |
admin-user |
The name of the PostgreSQL native user that you want to assign as the administrator of your instance. For this example, let's set it to adminuser . |
The admin username must contain between 1 and 63 characters, must only consist of numbers and letters, can’t start with pg_ and can't be azure_superuser, azure_pg_admin, admin, administrator, root, guest, or public. |
The name of this user can't be changed after the instance is created. Also, it can't be replaced with some other PostgreSQL native user that you could create in the instance. |
admin-password |
The password that you want to assign to the PostgreSQL native user which is designated as an administrator. |
Specify a password for the server admin account. Make sure that your password is complex enough. |
Can be changed as many times as needed after the server is created. |
tier |
Set it to generalpurpose . |
Possible values are burstable (typically used for development environments in which workloads don't need the full capacity of the CPU continuously), generalpurpose (typically used for production environments with most common workloads), and memoryoptimized (typically used for production environments running workloads that require a high memory to CPU ratio). For more information, see Compute options in Azure Database for PostgreSQL - Flexible Server. |
Can be changed after the server is created. However, if you're using some functionality which is only supported on certain tiers, and change the current tier to one in which the feature isn't supported, the feature stops being available or gets disabled. |
sku-name |
Set it to standard_d4ds_v5 . |
Notice that the list of supported values might vary across regions, depending on the hardware available on each region. For more information, see Compute options in Azure Database for PostgreSQL - Flexible Server. |
Can be changed after instance is created. |
storage-type |
Set it to premium_lrs . |
Notice that the list of allowed values might vary depending on which other features you selected. For more information, see Storage options in Azure Database for PostgreSQL - Flexible Server. |
Can't be changed after the instance is created. |
storage-size |
Set it to 128 . |
Notice that the list of supported values might vary across regions, depending on the hardware available on each region. For more information, see Compute options in Azure Database for PostgreSQL - Flexible Server. |
Can be changed after the instance is created. It can only be increased. Manual or automatic shrinking of storage isn't supported. Acceptable values depend on the type of storage assigned to the instance. |
performance-tier |
Set it to p10 . |
Performance of Premium solid-state drives (SSD) is set when you create the disk, in the form of their performance tier. When setting the provisioned size of the disk, a performance tier is automatically selected. This performance tier determines the IOPS and throughput of your managed disk. For Premium SSD disks, this tier can be changed at deployment or afterwards, without changing the size of the disk, and without downtime. Changing the tier allows you to prepare for and meet higher demand without using your disk's bursting capability. It can be more cost-effective to change your performance tier rather than rely on bursting, depending on how long the extra performance is necessary. This is ideal for events that temporarily require a consistently higher level of performance, like holiday shopping, performance testing, or running a training environment. To handle these events, you can switch a disk to a higher performance tier without downtime, for as long as you need the extra performance. You can then return to the original tier without downtime when the extra performance is no longer necessary. |
Can be changed after the instance is created. |
storage-auto-grow |
Set it to enabled . |
Notice that this option might not be supported for some storage types, and it might not be honored for certain storage sizes. For more information, see Configure storage autogrow in an Azure Database for PostgreSQL flexible server. |
Can be changed after the instance is created, as long as the storage type supports this feature. |
high-availability |
Set it to zoneredundant . |
Supported values are disabled (99.9% SLA), samezone (99.95% SLA), and zoneredundant (99.99% SLA). Notice that supported high availability options might vary depending on the region in which you're trying to deploy your instance. For more information, see High availability in Azure Database for PostgreSQL - Flexible Server. |
High availability can be enabled or disabled after server creation. However, if it's enabled, it can't be changed directly from samezone to zoneredundant or viceversa. In order to implement such change, you first need to disable high availability, and then re-enable it choosing the newly desired mode. |
standby-zone |
Set it to 2 . This number represents your preferred logical availability zone for the hot standby replica. |
You can choose in which availability zone you want your server to be deployed. Being able to choose the availability zone in which your instance is deployed, is useful to colocate it with your application. If you choose No preference, a default availability zone is automatically assigned to your instance during its creation. |
Although the availability zone in which an instance is deployed can't be changed after its creation, you can use the point in time recovery feature to restore the server under a different name on a different availability zone. |
backup-retention |
Set it to 7 . |
The default backup retention period is 7 days, but you can extend the period to a maximum of 35 days. Notice that supported high availability options might vary depending on the region in which you're trying to deploy your instance. For more information, see High availability in Azure Database for PostgreSQL - Flexible Server. |
Can be changed after instance is created. |
geo-redundant-backup |
Set it to disabled . |
Geo-redundancy in backups is only supported on instances deployed in any of the Azure paired regions. For more information, see Geo-redundant backup and restore in Azure Database for PostgreSQL - Flexible Server |
Can't be changed after instance is created. |
public-access |
Set it to $(curl ipinfo.io/ip) to create a firewall rule that allowlists the public IP address of the computer from which you're running the Azure CLI commands. That allows you to connect to your new instance from that computer. |
Possible values are all , none , <startIpAddress> , or <startIpAddress>-<endIpAddress> . For more information, see Network with public access and private endpoints for Azure Database for PostgreSQL - Flexible Server with public access and Network with virtual network integration for Azure Database for PostgreSQL - Flexible Server. |
Can't be changed after instance is created. |
tags |
Set it to "Environment=PostgreSQL Quickstart" . |
For more information about, see tags. |
Can be changed after instance is created. |