https://pulumi.com logo
#azure
Title
# azure
a

ancient-eve-13947

02/04/2022, 10:37 AM
maybe this is worth a separate question: how do I make a pulumi resource depend on a (Azure native) `WebApp`not just having been provisioned, but having started?
t

tall-librarian-49374

02/04/2022, 11:25 AM
You’d have to write custom code if you need that. As soon as Azure reports the resource as success, it’s provisioned for Pulumi and we don’t know anything about “started”.
a

ancient-eve-13947

02/04/2022, 11:45 AM
ok
h

high-leather-15669

02/04/2022, 1:15 PM
Wouldn't the output
availability_state
provide something?
t

tall-librarian-49374

02/04/2022, 1:24 PM
Whatever the output value is, it would resolve at the time when provisioning is done and won’t change until the next refresh or update operation.
h

high-leather-15669

02/04/2022, 2:15 PM
Valid point, but was wondering if one could use
getWebApp
and hence the
availability_state
and then chain the dependency
a

ancient-eve-13947

02/07/2022, 1:15 PM
that is indeed an interesting idea, @high-leather-15669, I will try that and give feedback if it works. will take a day, though, probably.
5 Views