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?
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.