azure icon indicating copy to clipboard operation
azure copied to clipboard

Feature Proposal: Add support for PostgreSQL flexible servers

Open arahja opened this issue 3 years ago • 14 comments

SUMMARY

Add Azure Database for PostgreSQL flexible servers support

ISSUE TYPE
COMPONENT NAME
  • azure_rm_postgresqlconfiguration
  • azure_rm_postgresqlconfiguration_info
  • azure_rm_postgresqldatabase
  • azure_rm_postgresqldatabase_info
  • azure_rm_postgresqlfirewallrule
  • azure_rm_postgresqlfirewallrule_info
  • azure_rm_postgresqlserver
  • azure_rm_postgresqlserver_info

arahja avatar Dec 22 '21 15:12 arahja

+1

tschechniker avatar May 30 '22 11:05 tschechniker

+1

NemoDang avatar Oct 10 '22 07:10 NemoDang

+1

sharvarikhedkar avatar Oct 27 '22 04:10 sharvarikhedkar

+1

MrChips821 avatar Dec 22 '22 09:12 MrChips821

+1

AlbertoGonzalezMayorga avatar Feb 20 '23 11:02 AlbertoGonzalezMayorga

+1 Specially given the single server won't be available for creation from Nov 2023 and is going to be retired in 2025. https://learn.microsoft.com/en-us/azure/postgresql/single-server/whats-happening-to-postgresql-single-server

pwakano avatar Apr 03 '23 12:04 pwakano

anitoshsaha avatar Apr 05 '23 23:04 anitoshsaha

For those interested, a workaround to create the flexible server using the generic azure_rm_resource:

- azure_rm_resource:
    subscription_id: "{{ subscription_id }}"
    resource_group: "{{ resource_group }}"
    provider: DBforPostgreSQL
    resource_type: flexibleServers
    resource_name: "{{ name }}"
    idempotency: true
    api_version: '2021-06-01'
    body: # Ref: https://learn.microsoft.com/en-us/rest/api/postgresql/flexibleserver/servers/create?tabs=HTTP
       location: "{{ location }}"
       sku: "{{ sku }}"
       properties:
          administratorLogin: "{{ admin_username }}"
          administratorLoginPassword: "{{ admin_password }}"
          createMode: Create
          backup:
             geoRedundantBackup: "{{ geo_redundant_backup }}"
          highAvailability:
             mode: "{{ high_availability }}"
          network:
             delegatedSubnetResourceId: "{{ pg_subnet_id }}"
             privateDnsZoneArmResourceId: "{{ pg_dns_zone_id }}"
             publicNetworkAccess: Disabled
          storage:
             storageSizeGB: "{{ storage_size_gb }}"
          version: "{{ version }}"
       tags: "{{ tags }}"

pwakano avatar Apr 13 '23 01:04 pwakano

+1

matt961 avatar May 19 '23 22:05 matt961

For those interested, a workaround to create the flexible server using the generic azure_rm_resource ...


+1

No problem to create a flexible server. The problem is all azure_rm_postgresql* modules don't support it, because Azure has since put flexible servers under the resource path .../flexibleServers/... but these modules only search under .../servers/...

zph001 avatar May 26 '23 13:05 zph001

+1

hoangquy4897 avatar May 29 '23 07:05 hoangquy4897

+1

bigg01 avatar Jul 01 '23 06:07 bigg01

Any updates on this feature?

As today I am not able to get details of my "Azure Database for PostgreSQL flexible servers" using "azure.azcollection.azure_rm_postgresqlserver" collection, which we needs to be supported.

MustafUddinAhmed avatar Sep 12 '23 15:09 MustafUddinAhmed

After months, we the Azure customers are still waiting ...

zph001 avatar Sep 15 '23 10:09 zph001

The following modules are available now:

azure_rm_postgresqlflexibleconfiguration_info.py azure_rm_postgresqlflexibledatabase_info.py azure_rm_postgresqlflexibledatabase.py azure_rm_postgresqlflexiblefirewallrule_info.py azure_rm_postgresqlflexiblefirewallrule.py azure_rm_postgresqlflexibleserver_info.py azure_rm_postgresqlflexibleserver.py

Can this be closed? Thanks!

p3ck avatar Mar 20 '24 16:03 p3ck

Closed because of https://github.com/ansible-collections/azure/pull/1192

Fred-sun avatar Apr 11 '24 03:04 Fred-sun