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/quickstart-create-server-python-sdk.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,15 +26,15 @@ An Azure account with an active subscription. [Create one for free](https://azur
26
26
27
27
## Create the Server
28
28
29
-
First, install the required packages:
29
+
First, install the required packages.
30
30
31
31
```bash
32
32
pip install azure-mgmt-resource
33
33
pip install azure-identity
34
34
pip install azure-mgmt-rdbms
35
35
```
36
36
37
-
Create a `create_postgres_flexible_server.py` file and include the following code:
37
+
Create a `create_postgres_flexible_server.py` file and include the following code.
38
38
39
39
```python
40
40
from azure.identity import DefaultAzureCredential
@@ -109,7 +109,7 @@ You can use the Python SDK, Azure portal, Azure CLI, Azure PowerShell, and vario
109
109
110
110
111
111
# [Python SDK](#tab/PythonSDK)
112
-
Add the `check_server_created` function to your existing script to use the servers attribute of the `PostgreSQLManagementClient` instance to check if the PostgreSQL Flexible Server was created:
112
+
Add the `check_server_created` function to your existing script to use the servers attribute of the [`PostgreSQLManagementClient`](https://learn.microsoft.com/en-us/python/api/azure-mgmt-rdbms/azure.mgmt.rdbms.postgresql_flexibleservers.postgresqlmanagementclient?view=azure-python) instance to check if the PostgreSQL Flexible Server was created:
If you no longer need the PostgreSQL Flexible Server, you can delete it and the associated resource group using the following methods.
161
161
162
162
# [Python SDK](#tab/PythonSDK)
163
+
Add the `delete_resources` function to your existing script to delete your Postgres server and the associated resource group that was created in this quickstart.
0 commit comments