Skip to content
This repository was archived by the owner on Oct 15, 2023. It is now read-only.

Azure-Samples/postgresql-dotnet

page_type languages products extensions
sample
csharp
azure
services
PostgreSQL
platforms
dotnet

Getting started on managing PostgreSQL databases in C#

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.

Running this Sample

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

More information

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.

About

Getting started with managing PostgreSQL flexible servers in C#

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages