V2 release #1834
danielrbradley
announced in
Announcements
V2 release
#1834
Replies: 1 comment 1 reply
-
These changes sound great, the compilation time of TypeScript is pretty bad right now. When we had a look at picking up Pulumi over Terraform (for Azure) and the editor performance and compilation time were a blocker. One of the issues is deep imports still reference back to root modules so even if you try to pull in a subset of the types, TypeScript still needs to parse ~2million lines of types. Is the plan to not re-export the older versions except from the deep imports? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It’s been over a year since we released our first stable version of the azure-native provider. Therefore we’re planning to do a major version upgrade with some limited breaking changes to give an opportunity to make some strategic improvements.
Please do use this discussion thread to ask any questions before or after the relase.
Update Default Versions
Throughout version 1 we’ve endeavoured to keep backward compatibility of all the resources at the top level of each module – often continuing to use older versions of Azure’s REST APIs, and in some cases preview versions.
For example in the EventGrid module, the EventSubscription resource currently uses version
2020-06-01
of the Azure REST API and “Channel” uses2021-10-15-preview
when there is now2022-06-15
available for both. Therefore we will update the versions we present to reflect the latest available Azure REST API versions. This will include some changes to resources which are not compatible between the two versions, for example a property might be renamed or its type changed.If you experience problems with incompatible types when upgrading to version 2 you can either:
To continue to use the same resource version as from version 1 of the provider package you will need to update your import statements as follows:
Check which “API Version” of the resource you are using in V1:
Next, update your import to point to the specific older version. For example, to import the explicit version of the EventGrid EventSubscription resource:
C#
Typescript
Python
Go
YAML
Remove Deprecated Versions
Since v1.62.0 we have introduced deprecation notices on specific older versions of Azure’s REST API. At the point of releasing version 2 of the provider any deprecated versions will be removed. We recommend migrating any affected resources to a newer version of Azure’s REST API.
Our estimates are that very few users should be affected by these changes as they only include versions which were released before 2021, have been superseded, and are not currently used as a default version.
The reason for these removals is to limit the growth rate of the SDKs. Most languages have limits on the size of an SDK; and we’ve reached a few already which have required some work to mitigate. We will continue to look at long term solutions to address these limitations but this is necessary work to ensure the stability of the provider.
Simplify User Assigned Identities (work in progress)
User assigned identities are a property on many different resources and are currently quite tricky to pass correctly due to their type being unclear. As part of the move to version 2 of the provider, these user-assigned identities types will become simple lists of strings to make them much easier to use.
Beta Was this translation helpful? Give feedback.
All reactions