sparse-intern-71089
11/10/2022, 12:08 AMquiet-tomato-48326
11/10/2022, 1:43 AMpulumi stack export | jq -r '.deployment.resources[] | select(.type == "pulumi:providers:azuread") | .urn' | xargs printf -- "--target '%s'\n" | xargs pulumi up --refresh --yes --non-interactive
(I’m trying to automate the workaround for this)
I changed it to use a for loop instead, and suddenly it works as expected:
for URN in $(pulumi stack export | jq -r '.deployment.resources[] | select(.type == "pulumi:providers:azuread") | .urn' ); do
pulumi up --refresh --yes --non-interactive --target "${URN}"
done
quiet-tomato-48326
11/10/2022, 1:53 AMquiet-tomato-48326
11/10/2022, 1:53 AM