Hi Thiago
Could you please try the below steps to resolve this issue:
- Try re-authenticating the Service Connection. Ensure that the service principal used in the Azure DevOps service connection has the Owner or User Access Administrator permissions.
- Go to Azure Portal -> Navigate to your App Service and Web App -> Access Control (IAM) Ensure you must be part of Contributor or Owner Role.
- Clear your browser cache or try accessing Azure DevOps in an incognito/private browsing window.
- Since you mentioned that the Azure DevOps organization is under a different directory (
camsolutions.ca
) and the Azure subscription is in (lruivocsiflex.onmicrosoft.com
), this could be causing the issue. You need to switch Azure DevOps to the correct Azure AD tenant or directory. - Go to Azure DevOps Organizations -> Organization Settings -> Microsoft Entra ID -> Check if the correct directory is linked.
- Ensure that your YAML file is correctly configured to use the service connection:
- task: AzureWebApp@1 inputs: azureSubscription: 'your-service-connection-name' appType: 'webApp' WebAppName: 'your-web-app-name' package: '$(System.DefaultWorkingDirectory)/**/*.zip' # Adjust as necessary
Additional References:
Hope this helps!
Please Let me know if you have any queries. If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.