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

GitHub Actions error - OperationStopped: The role assigned to application *** isn't #676

Open
pesip opened this issue Feb 19, 2025 · 2 comments
Assignees

Comments

@pesip
Copy link

pesip commented Feb 19, 2025

When I run the GitHub Action, I encounter errors, and I’m not sure how to resolve them. I’m using the default tests.

"AzVersion": "12.1.0"
}
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command $env:PSModulePath
/usr/share:/home/runner/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules
Initializing Az Module Complete
Running Az PowerShell Script
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command /home/runner/work/_temp/0cd00a8a-8720-42e8-85f4-c6a651549468.ps1
Starting Maester tests
WARNING: You're using Az version 12.1.0. The latest version of Az is 13.2.0. Upgrade your Az modules using the following commands:
Update-PSResource Az -WhatIf -- Simulate updating your Az modules.
Update-PSResource Az -- Update your Az modules.
There will be breaking changes from 12.1.0 to 13.2.0. Open https://go.microsoft.com/fwlink/?linkid=2241373 and check the details.
WARNING: Upcoming breaking changes in the cmdlet 'Get-AzAccessToken' :
The Token property of the output type will be changed from String to SecureString. Add the [-AsSecureString] switch to avoid the impact of this upcoming breaking change.

  • The change is expected to take effect in Az version : '14.0.0'
  • The change is expected to take effect in Az.Accounts version : '5.0.0'
    Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
    OperationStopped: The role assigned to application *** isn't
    supported in this scenario. Please check online documentation for assigning
    correct Directory Roles to Azure AD Application for EXO App-Only Authentication.
    Error: Error: The process '/usr/bin/pwsh' failed with exit code 1
@merill
Copy link
Contributor

merill commented Feb 20, 2025

Tagging @f-bader to help take a look at this.

@tacoroumen
Copy link

Hello, have you followed this part of the documentation. This fixed the issue for me!

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

4 participants