Reputation: 444
I would like to define the owner during the app registration creation by myself or suppress that an owner is set at all.
The default behavior seems to be, that the command New-AzureADMSApplication
adds the user that established the connection to Azure before as the owner of the created app registration. According to the Azure Active Directory PowerShell 2.0 reference I was not able to find a parameter to set the owner by myself.
New-AzureADApplication
because it has issues with -SignInAudience
Upvotes: 0
Views: 324
Reputation: 4776
AFAIK, currently there is no options to add/Remove the owner role while creating the app registration. Using azure portal, we can do while creating the app registration.
You can use the below commands to Add/Remove the Owner role of an application.
#Add AzADMS application owner role
Add-AzureADMSApplicationOwner
-ObjectId <AAD object>
-RefObjectId <AAD object will be assigned to owner/manager/member>
#Remove AzADMS application owner role
Remove-AzureADMSApplicationOwner
-ObjectId <AAD object>
-RefObjectId <AAD object will be assigned to owner/manager/member>
Upvotes: 1