https://pulumi.com logo
Title
m

millions-journalist-34868

05/13/2020, 10:56 AM
Anyone ever tried to set the Owners property of an Application (App Registration) ? By default, when not specified, the owner is set to the SP deploying the resources and it works fine. However if I try to set the Owners property with an InputList containing a user and my SP name, I have the following error when the code try to add my user as an owner :
Error while adding owners to Azure AD applications with ID "****-****-****-***-****": Error adding owner "****-****-****-****-****" to Azure AD applications with ID "****-****-****-***-****": graphrbac.ApplicationsClient#AddOwner: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Unknown" Message="Unknown service error" Details=[{"odata.error":{"code":"Authorization_RequestDenied","date":"2020-05-13T10:54:33","message":{"lang":"en","value":"Insufficient privileges to complete the operation."}}]
This could be linked to this issue but it's closed so this should be okay now.
@tall-librarian-49374 is there any complex sample somewhere on how to create an Application / App Registration : • multiple owners • exposing an API with an Application ID URI, scopes, Authorized client applications (preAuthorizedApplications) • .... I have trouble finding samples even terraform samples to do that.
t

tall-librarian-49374

05/13/2020, 6:12 PM
Not that I know of