Introduction I tried creating a virtual machine with Ansible to Azure Stack. In conclusion, I was able to create a virtual machine with Ansible 2.4 and service principle.
My environment ASDK 1901 @physical container Ubuntu 18.04 Ansible 2.7.7 At first, I used Ansible 2.7.7 which pip installed to my machine. Then, the following error about creating virtual network occurred.
"msg": "Error creating or updating virtual network myVnet - Azure Error: NoRegisteredProviderFound\nMessage: No registered resource provider found for location 'local' and API version '2017-11-01' for type 'virtualNetworks'.