There exists an AzureRM module that is built on .NET Core. However, the AzureRM module doesn’t have all of the required functionality to interact with Azure. Many of the other cmdlets, such as New-AzureAffinityGroup
, are present in the Azure module. Here are a list of other cmdlets: https://www.powershellgallery.com/packages/Azure/4.2.1
When can we expect support for this module and the remaining Azure cmdlets to be added?
Advertisement
Answer
- Microsoft doesn’t give any eta on when “classic” things are going to get fully ported into ARM. But almost everything was already ported, so I would expect “classic” to be fully ported to ARM in a year or so.
- AzureRM.Netcore is way behind AzureRM, and Microsoft doesn’t give any eta when they will be on par, but Powershell 6 is being built on top of .Net Core, so I would expect AzureRM.Netcore match AzureRM at some point in time, but not really soon, obviously.
Meanwhile, you can work around with rest calls. That’s a bit of a different talk, but easiest way to do this is perform the command you know works and add a “-Debug” to it (New-AzureAffinityGroup -bla blabla ... -Debug
). It will print out (well, not sure about old cmdlets, but AzureRM cmdlets do that) the rest call it performed. Another way – take a look at Azure API reference.