rich-breakfast-23259
09/25/2024, 5:27 AMdoes not have authorization to perform action 'Microsoft.Web/sites/publishxml/action' over scope ...
And when I added this one (and some more) to a custom role I instead got.
Package deployment using OneDeploy initiated. Error: Failed to deploy web package to App Service. Error: Deployment Failed, Error: Failed to deploy web package using OneDeploy to App Service.
Another thing I tried was instead to create a service-principal with pulumi, But then I get Authorization_RequestDenied: When using this permission, the backing application of the service principal being created must be in the local tenant.
But I think that means I dont have the rights to create one, but not sure.
I just thought it would be super simple to connect a github account to my web app, since it was so simple for the static web app. I have asked both ChatGPT, the pulumi ai, google it and youtube. So if anyone have a good tutorial they want to share, I would really appreciate itrich-breakfast-23259
09/25/2024, 6:30 AMAuthorization_RequestDenied: When using this permission, the backing application of the service principal being created must be in the local tenant.
Seemed to be that I did not inject my user when creating:
var adApp = new Application("myAdApp3", new ApplicationArgs
{
DisplayName = "myAdApp3",
});
I need
var currentUser = Output.Create(Pulumi.AzureAD.GetClientConfig.InvokeAsync()).Apply(config => config.ObjectId);
var adApp = new Application("myAdApp3", new ApplicationArgs
{
DisplayName = "myAdApp3",
Owners = { currentUser }
});
rich-breakfast-23259
09/25/2024, 7:34 AMrich-breakfast-23259
09/25/2024, 7:40 AM