On 21-12-17 18:05, Niloofar Radafshar wrote:
Hi,

I am using ansible 2.4.2 and azure_rm_storageaccount module is throwing an error:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: msrest.exceptions.SerializationError: Unable to build a model: <SkuName.standard_lrs: 'Standard_LRS'> is not valid value for enum <enum 'SkuName'>, DeserializationError: <SkuName.standard_lrs: 'Standard_LRS'> is not valid value for enum <enum 'SkuName'>

[snip]

is there any ansible version that this module was actually working?

below is my playbook:
- name: Create Azure VM
   hosts: localhost
   connection: local
   tasks:
   - name: Create storage account
     azure_rm_storageaccount:
        resource_group: awx
        name: testaccount2018
       type: Standard_LRS

Do you have the azure-sdk-for-python installed? The Ansible Azure modules use the SDK to talk to the Azure Resource Manager.
See https://github.com/Azure/azure-sdk-for-python

Getting Started with Azure:
http://docs.ansible.com/ansible/latest/guide_azure.html

Cheers,
Patrick

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/519bb7f8-6bba-2160-c4d4-c30d70486043%40laimbock.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to