[ansible-project] ansible azure_rm_networkinterface subnet from other resource group

2018-01-31 Thread Tim Qin
I m trying to create a virtual network in resource group A and a network 
interface in resource group B where the subnets and virtual network is from 
resource group A.

*azure_rm_networkinterface *seems can only lookup subnet from the virtual 
network within the same resource group base on the code:
subnet = self.get_subnet(virtual_network_resource_group, 
virtual_network_name, self.subnet_name)


where the virtual_network_resource_group is obtained from the 
resource_group argument, and the same argument will be used to create the 
network interface.

Any workarounds or good practices I should follow?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9fe1fc6b-f7dc-4af8-b54e-34a1d0983ce3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] dns_settings in azure_rm_networkinterface

2018-01-31 Thread Tim Qin
For the return value in module azure_rm_networkinterface we could have 
dns_settings as an output:

'dns_settings': {'dns_servers': [], 'internal_fqdn': None, 
'internal_dns_name_label': None, 'applied_dns_servers': []}

But how can we set these dns_settings options in the azure_rm_networkinterface 
creation stage?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/405ddcc9-72d7-4685-ab7f-7bc215e3dfa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Azure Auth using 'az login' like Terraform does

2018-01-30 Thread Tim Qin
I m trying to use ansible azure module, but the auth methods blocked me:
- Service principles:  it is no go as we are auth through enterprise AD on 
Azure portal
- AD: simply provide username and password are not working because when 
typing my corp email addresses, Azure will redirect to my corp auth page 
and I need to auth using my account-01 number and password, by trying 
different combination of the account-01 username/password or the corp email 
address, I did not get a valid username-password pair.recentl

I noticed Terraform used to rely on Service principle only, however, few 
month ago you could do 'az login' and then seems that Terraform would be 
able to pick up the granted temporary token by a successful az login.

Is there a similar mechanism behind that I could use rather than get a 
dodge account setup?

Thanks,
Tim


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/73310f56-d04a-4038-a433-2ebc33edc2af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.