chef / knife-azure

Chef knife plug-in for Microsoft Azure
https://github.com/chef/knife-azure
Apache License 2.0
72 stars 89 forks source link

Move to the latest azure profile instead of 2018 API release #535

Open tas50 opened 4 years ago

tas50 commented 4 years ago

Right now we're hard coding specific API releases in this knife plugin and they are quite dated. Instead of doing this we should use the latest profile so we're always working with a known stable set of current API releases.

This mostly occurs in:

https://github.com/chef/knife-azure/blob/master/lib/azure/resource_management/ARM_interface.rb#L32

We can remove all the includes and then change how we initialize all the Azure objects. For example:

ResourceManagementClient.new becomes ::Azure::Resources::Profiles::Latest::Mgmt::Client.new