Skip to content

Upgrading Extensions for V2 Compatibility

Alex Weininger edited this page Sep 26, 2022 · 20 revisions

Guide for updating a client extension to be compatible with the Azure Resources API V2.

Extension must be using the latest version of the utils package.

  • Update utils package
  • Replace registerCommand uses with registerCommandWithTreeNodeUnwrapping
  • Resolvers must be registered with an AzExtResourceType ID The id argument when calling registerApplicationResourceResolver must be an AzExtResourceType.
  • Add V2 contributions to package.json
  • Commands should show on azureResourceGroupsV2 view instead of azureResourceGroups view
  • Change commands attached to azureResourceTypeGroup tree items to use AzExtResourceType contexts Example

Use Azure Functions as an example

Clone this wiki locally