Skip to content

Instantly share code, notes, and snippets.

@andikrueger
Last active May 21, 2023 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andikrueger/0a1b72adda3ed33084934d8886652248 to your computer and use it in GitHub Desktop.
Save andikrueger/0a1b72adda3ed33084934d8886652248 to your computer and use it in GitHub Desktop.
Install-Module Az.Resources
$permissions = Get-M365DSCCompiledPermissionList -ResourceNameList (Get-M365DSCAllResources) -PermissionType Application -AccessType Read
Update-M365DSCAzureAdApplication -ApplicationName CollabsummitExport -Permissions $permissions -Type Certificate -CreateSelfSignedCertificate -AdminConsent -Verbose -CertificatePath C:\TenantConfig\CollabsummitExportApp.cer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment