page_type | languages | products | extensions | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
|
Azure sample for managing PostgreSQL Database -
- Check name availability for the server creation.
- Create a PostgreSQL Server.
- Update the server's properties.
- Create a firewall rule.
- Update a firewall rule.
- List and delete the firewalls rules.
- Get and update a configuration of the server.
- Delete the server.
To run this sample:
Create an Azure service principal with the [Azure CLI][] command az ad sp create-for-rbac --output json
and set the following environment variables per that command's
output.
AZURE_TENANT_ID
, AZURE_CLIENT_ID
, AZURE_SECRET
, AZURE_SUBSCRIPTION_ID
git clone https://github.com/Azure-Samples/postgresql-dotnet.git
cd postgresql-dotnet
dotnet run
Azure Management Libraries for C# Azure .Net Developer Center If you don't have a Microsoft Azure subscription you can get a FREE trial account here
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.