-
Notifications
You must be signed in to change notification settings - Fork 8
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
Stack fails with microsoftGraph provider #169
Comments
Stacks are not supported by Microsoft Graph. This is listed as one of the known issues in official docs. |
@slavizh I searched the deployment stacks docs before posting it, but the limitation is not listed there https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deployment-stacks?tabs=azure-powershell#known-limitations But I now see that you are right - official docs of graph extension list it https://learn.microsoft.com/en-us/graph/templates/known-issues-graph-bicep#deployment-error-this-application-0-isnt-authorized-to-call-microsoft-graph-using-a-bicep-template Maybe adding one line into deployment stacks docs would help people like me. |
@antsok you should be looking at the Graph for Bicep documentation: https://learn.microsoft.com/en-us/graph/templates/known-issues-graph-bicep#other-unsupported-deployment-features. |
@antsok I am also not Microsoft employee and not responsible for Microsoft Learn docs. Additionally any Graph for Bicep issues should be logged here: https://github.com/microsoftgraph/msgraph-bicep-types/issues |
Hi there, I appreciate your comments, but my proposal for docs clarification was to repo owners ;) |
@azcloudfarmer - the article has been updated. You can close this issue. |
It would be very helpful to know if someone is working on it. An estimation is beyond my wishes. |
@andreibicu - the design for this is underway now and can be tracked here in this REP: Azure/bicep-reps#6 @kalbert312 / @azcloudfarmer / @snarkywolverine / @stephaniezyen - when the design is done and we determine an ETA, can we make sure we note that somewhere? I'm not sure if the REP is the right spot for that or if there should be an issue in this repo. |
Describe the bug
Deploying a stack at the subscription level with microsoftGraph provider in bicep fails with error
Insufficient privileges to complete the operation. Graph client request id: b63ad977-1969-4207-ba5b-74353803edb5. Graph request timestamp: 2024-06-17T22:39:56Z. (Code: Forbidden)
To Reproduce
Steps to reproduce the behavior:
az stack sub create --deny-settings-mode None --action-on-unmanage deleteAll --yes --name 'graph01' --location 'swedencentral' --template-file .\main.bicep --parameters entraGroupName='testGroup2' resourceGroupName='exp02-graph-rg'
Expected behavior
Deployment succedes.
Screenshots
Repro Environment
Host OS: Windows 11
Powershell Version: 7.4.2
Server Debugging Information
Correlation ID: 3d7952c0-c5e5-453c-ade2-69bc6c140322
Tenant ID: 74b5511e-1df2-48b9-a2df-a3b95c48c680
Timestamp of issue (please include time zone): 2024-06-17T22:39:56Z
Data Center (eg, West Central US, West Europe): swedencentral
Additional context
Trying in 'eastus' region gives the same problem.
Deploying with 'az deployment ...' succedes. Example comand
az deployment sub create --name 'graph04' --location 'swedencentral' --template-file main.bicep --parameters entraGroupName='testGroup4' resourceGroupName='exp04-graph-rg'
main.bicep
The text was updated successfully, but these errors were encountered: