Closed jannef closed 4 months ago
@jannef Thanks for filing this issue. It looks like this is an issue with the Microsoft Graph public schema including the origin
property, when it shouldn't - although I'm trying to get confirmation on this. Our model and docs are generated from the schema, which is why you are seeing origin
as a valid property.
So for now, please continue to remove the origin
property from the resource declaration.
As an aside, the App Manifest doesn't use Microsoft Graph, although it is supposed to be switching to this, and that might account for differences you see between the App Manifest and the Microsoft Graph application API (and by extension the applications Bicep type).
Hope this helps.
@jason-dou please remove this from the Bicep type for now.
The change to remove origin
from oauth2PermissionScopes
has been merged. The Graph Bicep type is expected to be updated in the upcoming Bicep version.
Closing as the change has been released with the latest Bicep version. Feel free to reopen if there are further issues.
Bicep version Bicep CLI version 0.27.1 (4b41cb6d4b)
Resource and API version Microsoft.Graph/applications@v1.0
Auth flow interactive
Deployment details Graph client request id: 00908c39-2a1b-434c-919f-6556bfe13f41. Graph request timestamp: Thu, 30 May 2024 06:15:48 GMT.
When deploying a resource of type
Microsoft.Graph/applications@v1.0
and supplyingoauth2PermissionScopes
with all the parameters supported by bicep the deployment fails with following error message:The property ´origin´ is present in the bicep being deployed.
When deploying without "origin", deployment works.
I expect deployment to work when I supply all parameters supported by bicep. The parameter origin can be found from app manifest.
To Reproduce
Additional context Found some issue related to this that was never resolved. Perhaps types are generated wrong the same way they are for the SDK? https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1469