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

Getting AadAuthOperationCannotBePerformedWhenServerIsNotAccessible on ARM template when deploying server admin with dependsOn for server #127

Open
aj9411 opened this issue Jan 2, 2025 · 0 comments

Comments

@aj9411
Copy link

aj9411 commented Jan 2, 2025

Hello, I am intermittently seeing this error when deploying a resource of type Microsoft.DBforPostgreSQL/flexibleServers/administrators via ARM template.

StatusCode: Conflict, Status: Failed, ErrorCode: AadAuthOperationCannotBePerformedWhenServerIsNotAccessible, ErrorMessage: The server '{server name}' is not in an accessible state to perform Azure AD Principal operation. Please make sure the server is accessible before executing Azure AD Principal operations.

I first deploy a postgres server (Microsoft.DBforPostgreSQL/flexibleServers) and explicitly depend on this server for the deployment of the Microsoft.DBforPostgreSQL/flexibleServers/administrators resource.

This situation complicates having stable, reliable deployments as sometimes the dependsOn condition is satisfied when apparently the postgres server is not ready for an Azure AD operation. I think this is a bug, the dependsOn condition for the postgres server should not be fulfilled until the server is ready for an Azure AD operation.

example arm operation id: A6CE82DD8683DCEF, sadly don't have the correlation id available

@aj9411 aj9411 changed the title Getting AadAuthOperationCannotBePerformedWhenServerIsNotAccessible on ARM template with dependsOn Getting AadAuthOperationCannotBePerformedWhenServerIsNotAccessible on ARM template when deploying server admin with dependsOn for server Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant