Is there a way to restart an Azure webapp after de...
# azure
Is there a way to restart an Azure webapp after deployment using pulumi (without the Azure CLI). We are running into a problem where this said app needs access to a KeyVault, but when the app is created/started the RBAC is not there yet. Thanks!
When would you call this restart? I guess it doesn’t make sense to do so immediately after creation?
We have the following Pulumi code:
Copy code
var vault = new KeyVault(...);

var app = new AppService(...);

// Workaround to get app's identity: <>
var appGet = AppService.Get(...);

new Assignment(...); // give App access to KeyVault
Now the problem is that when the
is given, the app is already running. A restart after the
would fix this issue. We are now doing it after the DevOps
task, using an
task (it works). We were wondering if there is a pulumi mechanism to achieve the same.
There’s no Pulumi resource to restart a web app, so you need to call either Azure CLI or Azure SDK (could be from within the program or outside as you do)
Yes I see. Thanks!