|
| 1 | +--- |
| 2 | +title: Resolve capacity errors |
| 3 | +description: This article describes how to resolve possible capacity errors when attempting to deploy or scale Azure Database for PostgreSQL Flexible Server. |
| 4 | +ms.service: postgresql |
| 5 | +ms.subservice: flexible-server |
| 6 | +ms.author: kabharati |
| 7 | +author: kabharati |
| 8 | +ms.reviewer: sachinp |
| 9 | +ms.topic: how-to |
| 10 | +ms.date: 01/25/2024 |
| 11 | +ms.custom: references_regions |
| 12 | +--- |
| 13 | + |
| 14 | +# Resolve capacity errors for Azure Database for PostgreSQL Flexible Server |
| 15 | + |
| 16 | +[!INCLUDE [applies-to-postgresql-flexible-server](../includes/applies-to-postgresql-flexible-server.md)] |
| 17 | + |
| 18 | +The article describes how you can resolve capacity errors when deploying or scaling Azure Database for PostgreSQL Flexible Server. |
| 19 | + |
| 20 | + |
| 21 | +> [!IMPORTANT] |
| 22 | +> For the list of regions that support Zone redundant high availability, please review the supported regions [here](./overview.md#azure-regions). |
| 23 | +
|
| 24 | + |
| 25 | +## Exceeded quota |
| 26 | + |
| 27 | +If you encounter any of the following errors when attempting to deploy your Azure PostgreSQL Flexible Server resource, [submit a request to increase your quota](how-to-request-quota-increase.md). |
| 28 | + |
| 29 | +- `Operation could not be completed as it results in exceeding approved {0} Cores quota. Additional details - Current Limit: {1}, Current Usage: {2}, Additional Required: {3}, (Minimum) New Limit Required: {4}.Submit a request for Quota increase by specifying parameters listed in the ‘Details’ section for deployment to succeed.` |
| 30 | + |
| 31 | + |
| 32 | +## Subscription access |
| 33 | + |
| 34 | +Your subscription may not have access to create a server in the selected region if your subscription isn't registered with the PostgreSQL resource provider (RP). |
| 35 | + |
| 36 | +If you see any of the following errors, [Register your subscription with the PostgreSQL RP](#register-with-postgresql-rp)] to resolve it. |
| 37 | + |
| 38 | +- `Your subscription does not have access to create a server in the selected region.` |
| 39 | + |
| 40 | +- `Provisioning is restricted in this region. Please choose a different region. For exceptions to this rule please open a support request with issue type of 'Service and subscription limits' ` |
| 41 | + |
| 42 | +- `Location 'region name' is not accepting creation of new Azure Database for PostgreSQL Flexible servers for the subscription 'subscription id' at this time` |
| 43 | + |
| 44 | + |
| 45 | +## Enable region |
| 46 | + |
| 47 | +Your subscription may not have access to create a server in the selected region. To resolve this issue, file a [request to access a region](how-to-request-quota-increase.md). |
| 48 | + |
| 49 | +If you see the following errors, file a support ticket to enable the specific region: |
| 50 | +- `Subscription 'Subscription name' is not allowed to provision in 'region name` |
| 51 | +- `Subscriptions are restricted from provisioning in this region. Please choose a different region. For exceptions to this rule please open a support request with the Issue type of 'Service and subscription limits.` |
| 52 | + |
| 53 | +## Availability Zone |
| 54 | + |
| 55 | +If you receive the following errors, select a different availability zone. |
| 56 | + |
| 57 | +- `Availability zone '{ID}' is not available for subscription '{Sub ID}' in this region temporarily due to capacity constraints.` |
| 58 | +- `Multi-Zone HA is not supported in this region. Please choose a different region. For exceptions to this rule please open a support request with the Issue type of 'Service and subscription limits'.` |
| 59 | +`See https://review.learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-request-quota-increase for more details.` |
| 60 | + |
| 61 | +## SKU Not Available |
| 62 | + |
| 63 | +If you encounter the following error, select a different SKU type. Availability of SKU may differ across regions, either the specific SKU isn't supported in the region or temporarily unavailable. |
| 64 | + |
| 65 | +`Specified SKU is not supported in this region. Please choose a different SKU.` |
| 66 | + |
| 67 | +## Register with PostgreSQL RP |
| 68 | + |
| 69 | +To deploy Azure Database for PostgreSQL Flexible resources, register your subscription with the PostgreSQL resource provider (RP). |
| 70 | + |
| 71 | +You can register your subscription using the Azure portal, [the Azure CLI](/cli/azure/install-azure-cli), or [Azure PowerShell](/powershell/azure/install-az-ps). |
| 72 | + |
| 73 | +# [Azure portal](#tab/portal) |
| 74 | + |
| 75 | +To register your subscription in the Azure portal, follow these steps: |
| 76 | + |
| 77 | + |
| 78 | +1. In Azure portal, select **More services.** |
| 79 | + |
| 80 | +1. Go to **Subscriptions** and select your subscription. |
| 81 | + |
| 82 | +1. On the **Subscriptions** page, in the left hand pane under **Settings** select **Resource providers.** |
| 83 | + |
| 84 | +1. Enter **PostgreSQL** in the filter to bring up the PostgreSQL-related extensions. |
| 85 | + |
| 86 | +1. Select **Register**, **Re-register**, or **Unregister** for the **Microsoft.DBforPostgreSQL** provider, depending on your desired action. |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + :::image type="content" source="./media/how-to-resolve-capacity-errors/register-postgresql-resource-provider.png" alt-text="Screenshot of Register PostgreSQL Resource Provider."::: |
| 91 | + |
| 92 | +# [Azure CLI](#tab/bash) |
| 93 | + |
| 94 | +To register your subscription using [the Azure CLI](/cli/azure/install-azure-cli), run this cmdlet: |
| 95 | + |
| 96 | +```azurecli-interactive |
| 97 | +# Register the PostgreSQL resource provider to your subscription |
| 98 | +az provider register --namespace Microsoft.DBforPostgreSQL |
| 99 | +``` |
| 100 | + |
| 101 | +# [Azure PowerShell](#tab/powershell) |
| 102 | + |
| 103 | +To register your subscription using [Azure PowerShell](/powershell/azure/install-az-ps), run this cmdlet: |
| 104 | + |
| 105 | +```powershell-interactive |
| 106 | +# Register the PostgreSQL resource provider to your subscription |
| 107 | +Register-AzResourceProvider -ProviderNamespace Microsoft.DBforPostgreSQL |
| 108 | +
|
| 109 | +``` |
| 110 | + |
| 111 | +--- |
| 112 | + |
| 113 | +## Other provisioning issues |
| 114 | + |
| 115 | +If you're still experiencing provisioning issues, open a **Region** access request under the support topic of Azure PostgreSQL Flexible Server and specify the vCores you want to utilize. |
| 116 | + |
| 117 | +## Azure Program regions |
| 118 | + |
| 119 | +Azure Program offerings (Azure Pass, Imagine, Azure for Students, MPN, BizSpark, BizSpark Plus, Microsoft for Startups / Sponsorship Offers, Microsoft Developer Network(MSDN) / Visual Studio Subscriptions) have access to a limited set of regions. |
| 120 | + |
| 121 | +If your subscription is part of above offerings and you require access to any of the listed regions, submit an access request. Alternatively, you may opt for an alternate region: |
| 122 | + |
| 123 | +`Australia Central, Australia Central 2, Australia SouthEast, Brazil SouthEast, Canada East, China East, China North, China North 2, France South, Germany North, Japan West, Jio India Central, Jio India West, Korea South, Norway West, South Africa West, South India, Switzerland West, UAE Central, UK West, US DoD Central, US DoD East, US Gov Arizona, US Gov Texas, West Central US, West India.` |
| 124 | + |
| 125 | + |
| 126 | +## Next steps |
| 127 | + |
| 128 | +Once you submit your request, it undergoes review. You then receive a response based on the information provided in the form. |
| 129 | + |
| 130 | +For more information about other Azure limits, see [Azure subscription and service limits, quotas, and constraints](/azure/azure-resource-manager/management/azure-subscription-service-limits). |
| 131 | + |
| 132 | + |
0 commit comments