Closed aureq closed 1 month ago
As a workaround for the example above, it's possible to add replaceOnChanges: ["*"]
as a resource option for the AppServicePlan
resource. The plan ID will change causing an update on the WebApp
resource and the stack output will be updated accordingly.
While I understand there's no changes made to the WebApp so that could explain why the new Outbound IP addresses aren't captured, I'm wondering if:
- This is the expected behavior
- If Pulumi should implement a workaround/fix for this
Yes this is expected behaviour as Pulumi doesn't have any knowledge of how updating one resource will trigger a change in the other resource.
If you perform a refresh after the deployment, it will show no change in the console output (because no inputs are changing), but the resource outputs do have the the updated outboundIpAddresses
. In order to show the update in the stack outputs, a deployment must run. The stack outputs won't be shown on the preview, but they will on the proper run:
pulumi up
Previewing update (daniel-pulumi-corp/dev)
Type Name Plan
pulumi:pulumi:Stack scratch-dev
Resources:
4 unchanged
Do you want to perform this update? yes
Updating (daniel-pulumi-corp/dev)
Type Name Status
pulumi:pulumi:Stack scratch-dev
Outputs:
~ outboundIpAddresses : "4.158.72.153,4.158.74.126,4.158.74.144,4.158.74.160,4.158.74.191,4.158.74.205,20.90.134.38" => "4.158.72.45,4.158.73.198,4.158.73.246,4.158.74.35,4.158.74.43,4.158.74.52,4.158.75.19,4.158.73.118,4.158.74.23,4.158.75.20,4.158.75.45,4.158.75.49,4.158.75.57,4.158.75.75,4.158.75.81,4.158.75.88,4.158.75.95,4.158.75.102,20.90.134.38"
possibleOutboundIpAddresses: "4.158.72.45,4.158.73.198,4.158.73.246,4.158.74.35,4.158.74.43,4.158.74.52,4.158.75.19,4.158.73.118,4.158.74.23,4.158.75.20,4.158.75.45,4.158.75.49,4.158.75.57,4.158.75.75,4.158.75.81,4.158.75.88,4.158.75.95,4.158.75.102,4.158.74.79,4.158.74.89,4.158.74.91,4.158.73.236,4.158.74.122,4.158.74.124,4.158.72.153,4.158.74.126,4.158.74.144,4.158.74.160,4.158.74.191,4.158.74.205,4.158.74.217,4.158.74.228,4.158.74.239,4.158.74.253,4.158.74.254,4.158.75.17,4.158.75.19,4.158.73.118,4.158.74.23,4.158.75.20,4.158.75.45,4.158.75.49,4.158.75.57,4.158.75.75,4.158.75.81,4.158.75.88,4.158.75.95,4.158.75.102,4.158.75.116,4.158.75.121,4.158.75.122,4.158.75.125,4.158.75.126,4.158.75.155,20.90.134.38"
Resources:
4 unchanged
Duration: 3s
What happened?
When I deploy the Pulumi app below, everything works as expected during the 1st deployment and the stack output
outboundIpAddresses
shows the same value as the Azure portal ✔.However, if I update the
web.AppServicePlan
and I set a newsku
(as commented), this causes the WebApp outbound IP Addresses to change on the Azure portal ⁉ but Pulumi doesn't notice any changes ⁉.While I understand there's no changes made to the WebApp so that could explain why the new Outbound IP addresses aren't captured, I'm wondering if:
Example
Steps to reproduce:
sku
in the AppServicePlan resourceOutput of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).