Open scottmack111 opened 1 week ago
Hi @scottmack111 this seems to be related to a breaking change in the upstream provider which wasn't documented in the release notes.
The ServicePricipal id
property changed to include the prefix /servicePrincipals/
and updated the parsing of any servicePrincipalId properties to require the prefix. There is a migration which is applied within the provider, however, this migration is not currently run by pulumi within the preview phase (see https://github.com/pulumi/pulumi-terraform-bridge/issues/2676).
The workaround for the time being is, when upgrading the provider (ideally with no other changes), perform the update with the --skip-preview
. Once the state is updated to the new version of the provider, this issue will then go away. You can also try running with the --expect-no-changes
option which should work here as there should be no actual changes once the migration has run, but will prevent any updates, deletes or creates to be run by the engine.
Separately, I've raised an issue in the bridge to address the problem long-term.
Describe what happened
I've been using azuread.ServicePrincipal in conjunction with azuread.ServicePrincipalPassword. Im currently running pulumi-azuread v5.53.4 and attempting to upgrade to v6.0.1. When running my deployments now I get the following error
Sample program
Log output
Affected Resource(s)
azuread.ServicePrincipalPassword
Output of
pulumi about
CLI Version 3.139.0 Go Version go1.23.3 Go Compiler gc
Plugins KIND NAME VERSION resource azure 6.9.0 resource azuread 6.0.1 resource kubernetes 4.18.3 language nodejs unknown resource random 4.16.7
Host OS Microsoft Windows 11 Pro Version 10.0.22631 Build 22631 Arch x86_64
Additional context
I can work around it using
However when doing this it now wants to replace my SP Password resource
Because servicePrincipalId is changing from "GUID" to "/servicePrincipals/GUID"
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).