brief-nest-24477
04/22/2026, 10:17 AMfrom pulumi_azure_native import app
...
self.managed_environment = app.ManagedEnvironment(
...,
identity=app.ManagedServiceIdentityArgs(
type=app.ManagedServiceIdentityType.SYSTEM_ASSIGNED)
...,
)
I prefer to be explicitly invoke the arg types for the providers since then we're more clear that the args are correct and we get type hinting.
This snippet used to work, but then we update the provider and...
File "C:\dev\datascience-exploration\deployment\infrastructure\pulumi\infrastructure_modules\containerapp.py", line 163, in __init__
identity=app.ManagedServiceIdentityArgs(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module '<http://pulumi_azure_native.app|pulumi_azure_native.app>' has no attribute 'ManagedServiceIdentityArgs'
And so we inspect the ManagedEnvironment provider and we find the type declaration for the identity argument
identity: Optional[pulumi.Input[Union['_commontypesv5.ManagedServiceIdentityArgs', '_commontypesv5.ManagedServiceIdentityArgsDict']]] = None,
So our arg type has suddenly moved to a new module _commontypesv5?
Why move the arg type out of the module where it is used? At least then keep an alias or something.
Our deployment pipeline pulls the newest versions of the providers and this sort of issue has broken our deployment more than once now.
Its easy to fix; either just supply generic args instead of using the types, or locking the version. Still ,I find this a bit bothersome, and I was wondering if anyone else has encountered this, or knows why pulumi /pulumi_azure_native updates has this behaviour?echoing-dinner-19531
04/22/2026, 11:24 AM