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
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/connect-python.md
+9-24Lines changed: 9 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,9 @@ In this section, you add authentication code to your working directory and perfo
129
129
return (conn_string)
130
130
```
131
131
132
+
>[!IMPORTANT]
133
+
> The code as-shown isfor demonstration purposes only. It's not suitable for use in production. For example, tokens issued by Microsoft Entra ID have a limited lifetime (24 hours by default). In production code, you need to implement a token refresh policy.
134
+
132
135
1. Get database connection information
133
136
134
137
1. In the [Azure portal](https://portal.azure.com/), search forand select your Azure Database for PostgreSQL flexible server name.
@@ -246,16 +249,10 @@ The following code example connects to your Azure Database for PostgreSQL flexib
0 commit comments