This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Grants an app admin consent for delegated permissions and app roles | |
.DESCRIPTION | |
Given a client app ID and the list of required permissions for the app, this script will perform | |
mostly the same steps that take place when tenant-wide admin consent is granted: | |
1. A service principal for the client app will be created, if necessary | |
2. A service principal for each resource service will be created, if necessary and possible |
OlderNewer