Appreciate if anyone could correct my mistake

Thanks,
Girish

On Tuesday, October 25, 2016 at 12:52:53 AM UTC+5:30, Girish Kumar 
Mayigowda wrote:
>
> Hi,
>
> I am trying to create a storage account and below is the play book and the 
> error, please let me know what am missing.
> i have created a file credentials.ini under etc/home/.azure
>
> ---
> - hosts: localhost
>   connection: local
>   vars:
>      subscription_id:XXXXXXXXXXXXXXXXXXXXXXXXXX
>      Client_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx
>      Serect_key: XXXXXXXXXXXXXXXXXXXXXXXXXX
>      Tenent_id: XXXXXXXXXXXXXXXXXXXXXXXXXX
>   tasks:
>     - name: Create VM with defaults
>       azure_rm_storageaccount:
>           resource_group: Testing
>           name: testaccount001
>           account_type: Standard_LRS
>
> Below is the error:
>
> fatal: [localhost]: FAILED! => {"changed": false, "failed": true, 
> "invocation": {"module_args": {"account_type": "Standard_LRS", "ad_user": 
> null, "append_tags": true, "client_id": null, "custom_domain": null, 
> "force": false, "kind": "Storage", "location": null, "name": 
> "testaccount001", "password": null, "profile": null, "resource_group": 
> "Testing", "secret": null, "state": "present", "subscription_id": null, 
> "tags": null, "tenant": null}, "module_name": "azure_rm_storageaccount"}, 
> "msg": "Failed to get credentials. Either pass as parameters, set 
> environment variables, or define a profile in ~/.azure/credentials."}
>
>
> Thanks!
>
>
>
>

-- 
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/b7308ef2-29d0-4d9e-85d8-c36db5fa8fd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to