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

deployment failed: failing invoking action 'provision' #174

Closed
agoncal opened this issue Aug 1, 2023 · 1 comment
Closed

deployment failed: failing invoking action 'provision' #174

agoncal opened this issue Aug 1, 2023 · 1 comment
Assignees

Comments

@agoncal
Copy link
Member

agoncal commented Aug 1, 2023

I am following the README to deploy the RWA:

git clone https://github.com/Azure/reliable-web-app-pattern-java.git
cd reliable-web-app-pattern-java
azd config set alpha.terraform on
azd env new <your-environment>
azd env set DATABASE_PASSWORD "AV@lidPa33word"
azd env set APP_ENVIRONMENT prod
azd env set AZURE_LOCATION westus3
azd env set AZURE_LOCATION2 eastus
azd up

After a long time, the azd up command fails with the following errors:

│ Error: Could not create service principal
│
│   with module.ad[0].azuread_service_principal.application_service_principal,
│   on modules/active-directory/main.tf line 68, in resource "azuread_service_principal" "application_service_principal":
│   68: resource "azuread_service_principal" "application_service_principal" {
│
│ ServicePrincipalsClient.BaseClient.Post(): unexpected status 409 with OData error: Request_MultipleObjectsWithSameKeyValue: The service principal cannot be created, updated, or restored because the service principal name yyyyyyyyyyyy is already in use.
╵

It's the first time I try to deploy the application, so I don't understand why I get the service principal name yyyyyyyyyyyy is already in use.

Any idea?
Thanks

As for my environment, I have:

$ java -version
openjdk version "17.0.5" 2022-10-18

$ mvn --version
Apache Maven 3.8.8

$ azd version
azd version 1.1.0
@adrianhall
Copy link
Member

This issue was corrected as part of our v1.1 upgrade. Can you try out the new instructions? Re-open if necessary.

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

3 participants