-
Notifications
You must be signed in to change notification settings - Fork 7
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
appRoleAssignedTo fails when deployed by application in DevOps pipeline #125
Comments
@eketo-msft Please investigate this issue. |
@dkershaw10 or @eketo-msft were you able to reproduce the issue? I still have it. |
Hey @Agazoth, the issued has been narrowed down to a downstream microservice. We are working with their engineering team to mitigate this issue and I hope to have an ETA today or tomorrow. Thank you for your patience. |
Hey @Agazoth, we are on track to resolve this issue early next week after the downstream microservice completes their deployment work. I'll let you know here when the issue is resolved so you can test again. |
Hey @Agazoth, downstream dependencies are updated, and testing looks good. Can you please retry your deployment and let me know if everything is working now? Thanks! |
Hey @eketo-msft, yes, it works now. Thanks! |
Bicep version
0.27.1
Resource and API version
Microsoft.Graph/[email protected]
Auth flow
Automated - Azure DevOps pipeline
Deployment details
{"error":{"code":"BadRequest","target":"/resources/appRoleAssignedTo[1]","message":"Unsupported token. Unable to initialize the authorization context. Graph client request id: a294e9fc-7bd2-45fa-badc-c8f33c8b4250. Graph request timestamp: Mon, 27 May 2024 14:58:35 GMT."}} (Code:DeploymentOperationFailed) Status Message: {"error":{"code":"BadRequest","target":"/resources/appRoleAssignedTo[0]","message":"Unsupported token. Unable to initialize the authorization context. Graph client request id: e2a79716-fc70-4f3c-856c-f071586fa797. Graph request timestamp: Mon, 27 May 2024 14:58:35 GMT."}} (Code:DeploymentOperationFailed) CorrelationId: a05e1c13-c5aa-4c04-b2c6-4a5ee8aedf6c
Describe the bug
The deployment runs as expected without the appRoleAssignedTo resource.
The deployment runs as expected with the appRoleAssignedTo resource when run from an interactive PowerShell console with a user having GA access
To Reproduce
main.bicep
module/AddPreauthenticationToApplication.bicep (preauthentication can only be done after app creation)
Additional context
![image](https://private-user-images.githubusercontent.com/15127301/334148768-ae9f8d64-82a2-45a5-842f-b957c6c4b784.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODkyNDAsIm5iZiI6MTczODk4ODk0MCwicGF0aCI6Ii8xNTEyNzMwMS8zMzQxNDg3NjgtYWU5ZjhkNjQtODJhMi00NWE1LTg0MmYtYjk1N2M2YzRiNzg0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA0MjkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ3OWEwOTdkMjZhZjZhNGY1N2EwM2RmYjY0OTY2MWRjYzIzZDM2Y2U3MTM0NDNiZDhmNjdjOWE0NmU4ZTY2OGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.D0q98htRRrln5NPVo6Ljk4zHNVU_JebQh2LaU0jTB1Q)
The service principal running the pipeline is owner on the subscription and have these permissions:
These access rights are in accordance with the highest privileges in the documentation found here: https://learn.microsoft.com/en-us/graph/templates/reference/overview?view=graph-bicep-1.0
The text was updated successfully, but these errors were encountered: