ansible / ansible/azure-testing
azure_rm_virtualmachine
- Dominant language
- No language data
- Stars
- 21
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
# Unable to create vm
Hello, first time posting here. I think I'm in the right place to submit this but please correct me if there's a better place.
I'm having a bear of a time trying to build an image with azure_rm_virtualmachine.
``
"msg": "Error creating or updating virtual machine klltestvm001 - Unable to build a model: is not valid value for enum , DeserializationError: is not valid value for enum "
}
``
Everything else works up to the point of building a VM using the below copied from the example at [Create a complete Linux virtual machine environment in Azure with Ansible:](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ansible-create-complete-vm)
```yaml
- name: Create VM
azure_rm_virtualmachine:
resource_group: klltest02-rg
name: klltestvm001
vm_size: Standard_DS1_v2
admin_username: deploy
ssh_password_enabled: false
ssh_public_keys:
- path: /home/kwan/.ssh/authorized_keys
key_data: "ssh-rsa [snip] kwan@darkmatter"
network_interfaces: klltestnic001
image:
offer: cloudera-centos-os
publisher: cloudera
sku: '7_2'
version: latest
```
I tried with other image parameters using the OpenLogic offering and several others. All return the same error.
I updated all packages in my python virtualenv environment. List of packages is at [Google Docs](https://docs.google.com/document/d/13ENJsDN-nS7RSwGzxOEnegq3g8zvlvCo9-T52WLxFzw/edit?usp=sharing).
I figure I'm missing something pretty obvious but I've exhausted my troubleshooting skills at this point. Any suggestions?
Thanks in advance,
Kwan
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the azure_rm_virtualmachine entry point and compare the linked Azure Ansible example with the reported DiskCreateOptionTypes error. Reproduce the failure using the shown image parameters, then establish the supported dependency and image combination and record the confirmed resolution or documentation needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100