When would you call this restart? I guess it doesn’t make sense to do so immediately after creation?
s
swift-hamburger-98290
01/06/2021, 9:43 AM
We have the following Pulumi code:
Copy code
var vault = new KeyVault(...);
var app = new AppService(...);
// Workaround to get app's identity: <https://github.com/pulumi/pulumi/issues/5071#issuecomment-669281090>
var appGet = AppService.Get(...);
new Assignment(...); // give App access to KeyVault
Now the problem is that when the
Assignment
is given, the app is already running. A restart after the
Assignment
would fix this issue.
We are now doing it after the DevOps
Pulumi@1
task, using an
AzureCli@2
task (it works). We were wondering if there is a pulumi mechanism to achieve the same.
t
tall-librarian-49374
01/06/2021, 9:56 AM
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)
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.