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
Ensure that your Azure tenant has the service principal for the Azure Database for PostgreSQL Flexible Server. This only needs to be done once per Azure tenant. First, check for the existence of the service principal in your tenant with this command. The ObjectId value is for the Azure Database for PostgreSQL Flexible Server service principal.
51
51
52
52
> [!NOTE]
53
-
> The following script is an example of a created app registration you can use for testing. If you want to apply your ids, you need to use your own app registration object and application id.
53
+
> The following script is an example of a created Azure App Registration you can use for testing. If you want to apply your ids, you need to use your own App Registration object and application id.
@@ -92,10 +92,14 @@ To set the Azure AD admin during server provisioning, follow these steps:
92
92
1. In the Azure portal, during server provisioning, select either **PostgreSQL and Azure Active Directory authentication** or **Azure Active Directory authentication only** as the authentication method.
93
93
1. On the **Set admin** tab, select a valid Azure AD user, group, service principal, or managed identity in the customer tenant to be the Azure AD administrator.
94
94
95
-
You can optionally add a local PostgreSQL admin account if you prefer using the **PostgreSQL and Azure Active Directory authentication** method.
95
+
You can optionally add a local PostgreSQL admin account if you prefer using the **PostgreSQL and Azure Active Directory authentication** method.
96
+
97
+
> [!NOTE]
98
+
> You can add only one Azure admin user during server provisioning. You can add multiple Azure AD admin users after the Server is created.
99
+
100
+
101
+
:::image type="content" source="media/how-to-configure-sign-in-Azure-ad-authentication/set-Azure-ad-admin-server-creation.png" alt-text="Screenshot that shows selections for setting an Azure AD admin during server provisioning.]":::
96
102
97
-
> [!NOTE]
98
-
> You can add only one Azure admin user during server provisioning. You can add multiple Azure AD admin users after the Server is created.
99
103
100
104
To set the Azure AD administrator after server creation, follow these steps:
101
105
@@ -104,13 +108,17 @@ To set the Azure AD administrator after server creation, follow these steps:
104
108
1. Select **Add Azure AD Admins**. Then select a valid Azure AD user, group, service principal, or managed identity in the customer tenant to be an Azure AD administrator.
105
109
1. Select **Save**.
106
110
111
+
:::image type="content" source="media/how-to-configure-sign-in-Azure-ad-authentication/set-Azure-ad-admin.png" alt-text="Screenshot that shows selections for setting an Azure AD admin after server creation.":::
112
+
107
113
> [!IMPORTANT]
108
114
> When setting the administrator, a new user is added to Azure Database for PostgreSQL - Flexible Server with full administrator permissions.
109
115
110
116
## Connect to Azure Database for PostgreSQL by using Azure AD
111
117
112
118
The following high-level diagram summarizes the workflow of using Azure AD authentication with Azure Database for PostgreSQL:
113
119
120
+
:::image type="content" source="media/how-to-configure-sign-in-Azure-ad-authentication/authentication-flow.png" alt-text="Diagram of authentication flow between Azure Active Directory, the user's computer, and the server.":::
121
+
114
122
Azure AD integration works with standard PostgreSQL tools like psql, which aren't Azure AD aware and support only specifying the username and password when you're connecting to PostgreSQL. As shown in the preceding diagram, the Azure AD token is passed as the password.
0 commit comments