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

Failed to create or update the app in Azure Active Directory. Exiting... #252

Open
darkenizer opened this issue Jul 28, 2022 · 6 comments
Open
Labels
bug Something isn't working

Comments

@darkenizer
Copy link

When I try to install the icebreaker bot via the script I always get the error shown in the screenshot. Unfortunately without further specification why the error occurred.

My user has global admin rights.

Can someone help?

icebreaker_fehler

@gsv022
Copy link

gsv022 commented Aug 1, 2022

Hi @darkenizer ,

Could you please go for the manual deployment procedure to keep yourself unblocked. Meanwhile we are checking the issue.
Please let us know if you are facing the issues while doing manual deployment.

Thank you.

@v-royavinash v-royavinash added the bug Something isn't working label Aug 1, 2022
@v-royavinash
Copy link
Contributor

@darkenizer, Let us know if the manual deployment worked for you?

@taurheim
Copy link

taurheim commented Sep 6, 2022

I had the same issue - it looks like the creation of the app is not successful but is being treated as such (I also get the "XX registered successfully" message. When I tried using an existing app the rest of the script worked fine

@RequieM88
Copy link

RequieM88 commented Feb 22, 2023

@darkenizer @taurheim

The issue is that the AZ module has changed. I changed the deploy.ps1 to be:

#Update
if($MultiTenant -eq $true) {
    az ad app update --id $app.appId --sign-in-audience AzureADMultipleOrgs --enable-access-token-issuance $AllowImplicitFlow
} else {
    az ad app update --id $app.appId --sign-in-audience AzureADMyOrg --enable-access-token-issuance $AllowImplicitFlow
}
#Create
if($MultiTenant -eq $true) {
    az ad app create --display-name $appName --sign-in-audience AzureADMultipleOrgs --enable-access-token-issuance $AllowImplicitFlow
} else {
    az ad app create --display-name $appName --sign-in-audience AzureADMyOrg --enable-access-token-issuance $AllowImplicitFlow
}

Which resolves the issue.

@williamaherman
Copy link

@RequieM88 can you call out where you specifically are updating the code?

@RequieM88
Copy link

RequieM88 commented Mar 20, 2024

@williamaherman

https://github.com/OfficeDev/microsoft-teams-apps-icebreaker/blob/main/Deployment/deploy.ps1

Replace line 204 for update
Replace line 217 for create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants