Azure-Samples / ansible-playbooks

Ansible Playbook Samples for Azure
MIT License
224 stars 349 forks source link

Vnet option #44

Closed ramaswin121994 closed 5 years ago

ramaswin121994 commented 5 years ago

https://github.com/Azure-Samples/ansible-playbooks/blob/946dc2b7d686ec9679e40a2ca4c0a7af79cf15b3/aks_create_scale.yml#

How can I add exist Vnet id

yuwzho commented 5 years ago

Hi @ramaswin121994 Do you mean attach the existing vnet to the AKS? I don't think AKS service api supports this operation according to the documentation

If you mention the ventSubnetID in the AgentPollProfile, you can set the agent_poll_profile like

      agent_pool_profiles:
        - name: default
          count: 3
          vm_size: Standard_D2_v2
          vnet_subnet_id: "your vnet subnet id"
ramaswin121994 commented 5 years ago

Okay, @yuwzho thanks.