Microsoft365DSC
Microsoft365DSC copied to clipboard
AADApplication: Creating enterprise apps and associated SPN from the gallery
I want to use the AADApplication resource to create enterprise apps in a tenant which use the gallery template. For example, to allow people to sign into services like GitHub, Zoom etc. I think we would need the ApplicationTemplateId
parameter, but is there anything else we need to allow us to create such applications using DSC? Thanks.
I modified the AADApplication resource to add the missing applicationTemplateId
field using the New-MGApplication cmdlet. However when creating an application I get access denied.
Investigating this further I discovered that if you want to create an application from a gallery template we need to use the Invoke-MgInstantiateApplicationTemplate cmdlet instead.
I have tested this locally and this seems to be the way to go, my question is should this be implemented as a new resource?
Example of this functionality can be viewed here: https://github.com/orgs/msgraph/discussions/57