I'd love to hear more about this. Are you saying that you're able to 
authenticate and run playbooks to Azure just by using your az login 
session? No Service principle at all?

On Tuesday, 19 February 2019 11:08:29 UTC, ameya agashe wrote:
>
> Not sure how you deal but for me Azure CLI az login works best, login and 
> just choose current subscription which you want to work on. Just change the 
> current default subscription. Did you try with this approach? I liked this 
> one. From memory, I don't think I created Service Principal for Ansible but 
> yes for Terraform.
>
> Ameya
>
> On Tue, Feb 19, 2019 at 8:47 PM Wawrzek Niewodniczanski <
> [email protected] <javascript:>> wrote:
>
>> Hi,
>>
>> I have Azure with multiple subscriptions and I wonder what's the best
>> way to switch between them. The main two methods described in docs
>> are:
>> - password, but I don't see a way to distinguish subscription
>> - service principal, I still trying to figure out if I can use the
>> same SP in many subscriptions.
>>
>> How do you deal with this?
>>
>> Wawrzek
>>
>> Link to docs:
>>
>> https://docs.ansible.com/ansible/latest/scenario_guides/guide_azure.html#providing-credentials-to-azure-modules
>>
>> -- 
>> Dr  Wawrzyniec NiewodniczaƄski    or Wawrzek for short
>>   PhD in Quantum Chemistry  & MSc in Molecular Engineering
>>    WWW: http://wawrzek.name E-MAIL: [email protected] <javascript:>
>>       Linux User #177124
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAC7-vpCXuF2BfM71md9yP2ukg8GAnBnbpd6zPXgvSHvYM%2BfWwA%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/927d7dc0-ce56-4000-be50-c06bfbc24e24%40googlegroups.com.

Reply via email to