- name: Create VM
azure_rm_virtualmachine:
resource_group: ansible
name: "vm-linuxweb-{{ count }}"
vm_size: Standard_DS1_v2
admin_username: ansible
admin_password: "{{ ansible_password }}"
ssh_password_enabled: true
network_interfaces: nic-linux
image:
offer: centos
publisher: openlogic
sku: '7.5'
version: latest
api_profile: "2017-03-09-profile"
I've been trying various versions for the api_profile parameter and nothing is working, but it draws out different errors.
Errors:
-
api_profile: "latest"
The error was: Message: The resource type 'locations/vmSizes' could not be found in the namespace 'Microsoft.Compute' for api version '2018-06-01'. The supported api-versions are '2015-06-15,2016-03-30,2017-03-30,2017-12-01'
-
api_profile: "2017-03-09"
Error retrieving resource group ansible - 'unknown Azure API profile: 2017-03-09'"
-
api_profile: "2017-03-09-profile"
The error was: Message: The resource type 'locations/vmSizes' could not be found in the namespace 'Microsoft.Compute' for api version '2018-06-01'. The supported api-versions are '2015-06-15,2016-03-30,2017-03-30,2017-12-01'
I know getting anything to work on AzureStack can be a challenge, but I really hoping I can get this going as Ansible has really helped in other areas.
Thank you,
Charles