Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVM Module Issue]: postgres flexible replica server error on property fullyQualifiedDomainName #4249

Open
1 task done
thllxb opened this issue Jan 20, 2025 · 6 comments
Open
1 task done
Assignees
Labels
Class: Resource Module 📦 This is a resource module Needs: External Changes ⚒️ When an issue/PR requires changes that are outside of the control of the module. e.g. to an RP. Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working

Comments

@thllxb
Copy link
Contributor

thllxb commented Jan 20, 2025

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

Module Name

avm/res/db-for-postgre-sql/flexible-server

(Optional) Module Version

0.7.1

Description

When creating a postgre flexible server in replica mode, it returns an error saying the property fullyQualifiedDomainName doesnt exist.
[{"code":"DeploymentOutputEvaluationFailed","target":"fqdn","message":"The template output 'fqdn' is not valid: The language expression property 'fullyQualifiedDomainName' doesn't exist, available properties are 'replica, storage, network, dataEncryption, state, backup, replicationRole'.."}]

example code:

module postgresFlexibleServer 'br/public:avm/res/db-for-postgre-sql/flexible-server:0.7.1' = {
  name: 'postgres-flexible-server'
  params: {
    createMode: 'Default'

    name: 'my-test-postgre-flex-server'
    location: 'centralus'
    skuName: 'Standard_D2ds_v5'
    tier: 'GeneralPurpose'
    version: '16'
    administratorLogin: 'testadmin'
    administratorLoginPassword: 'my-test-admin-password'
  }
}

module postgresFlexibleServerReplica 'br/public:avm/res/db-for-postgre-sql/flexible-server:0.7.1' = {
  name: 'postgres-flexible-server-replica'
  params: {
    createMode: 'Replica'
    sourceServerResourceId: postgresFlexibleServer.outputs.resourceId

    name: 'my-test-postgre-flex-server-replica'
    location: 'centralus'
    skuName: 'Standard_D2ds_v5'
    tier: 'GeneralPurpose'
    version: '16'
    administratorLogin: 'testadmin'
    administratorLoginPassword: 'my-test-admin-password'
    geoRedundantBackup: 'Disabled'
  }
}

(Optional) Correlation Id

No response

@thllxb thllxb added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels Jan 20, 2025
@github-project-automation github-project-automation bot moved this to Needs: Triage in AVM - Module Issues Jan 20, 2025

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Type: Bug 🐛 Something isn't working label Jan 20, 2025
@avm-team-linter avm-team-linter bot added the Class: Resource Module 📦 This is a resource module label Jan 20, 2025
Copy link

@thllxb, thanks for submitting this issue for the avm/res/db-for-postgre-sql/flexible-server module!

Important

A member of the @Azure/avm-res-dbforpostgresql-flexibleserver-module-owners-bicep or @Azure/avm-res-dbforpostgresql-flexibleserver-module-contributors-bicep team will review it soon!

@thllxb thllxb changed the title [AVM Module Issue]: failed to create a replica postgres flexible server [AVM Module Issue]: postgres flexible replica server eroor on property fullyQualifiedDomainName Jan 20, 2025
@thllxb
Copy link
Contributor Author

thllxb commented Jan 20, 2025

FYI, Bicep CLI version 0.32.4 (b326faa456)
correlationId: f559d751-924d-4615-b7da-1d401b62d108

@thllxb
Copy link
Contributor Author

thllxb commented Jan 20, 2025

Though the bicep deployment ends with error, the resource (the replica server) gets created successfully. Ironically, on the azure portal, the resource clearly presents the fullyQualifiedDomainName property with the correct value.

@arnoldna arnoldna added Needs: External Changes ⚒️ When an issue/PR requires changes that are outside of the control of the module. e.g. to an RP. and removed Needs: Triage 🔍 Maintainers need to triage still labels Jan 20, 2025
@thllxb thllxb changed the title [AVM Module Issue]: postgres flexible replica server eroor on property fullyQualifiedDomainName [AVM Module Issue]: postgres flexible replica server error on property fullyQualifiedDomainName Jan 22, 2025
@arnoldna
Copy link
Contributor

Currently under investigation in collaboration with the PostgreSQL Flexible Server product group.

@github-project-automation github-project-automation bot moved this from Needs: Triage to Done in AVM - Module Issues Jan 22, 2025
@arnoldna arnoldna reopened this Jan 22, 2025
@arnoldna
Copy link
Contributor

I have been able to recreate the same issue outside of the PostgreSQL Flexible Server AVM module. I have turned over my findings and sample code to the PostgreSQL Flexible Server product group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: Resource Module 📦 This is a resource module Needs: External Changes ⚒️ When an issue/PR requires changes that are outside of the control of the module. e.g. to an RP. Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working
Projects
Development

No branches or pull requests

2 participants