Open tas50 opened 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
ResourceManagementClient.new
::Azure::Resources::Profiles::Latest::Mgmt::Client.new
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