# How to pass Node\_Resource\_Group while creating AKS cluster via ansible azure\_rm\_aks module

**URL:** <https://forum.ansible.com/t/how-to-pass-node-resource-group-while-creating-aks-cluster-via-ansible-azure-rm-aks-module/32179>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [February 8, 2020, 3:06pm UTC](https://forum.ansible.com/t/how-to-pass-node-resource-group-while-creating-aks-cluster-via-ansible-azure-rm-aks-module/32179 "2020-02-08T15:06:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakash\_Sharma](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@Prakash\_Sharma](https://forum.ansible.com/u/Prakash_Sharma)\
**Post date:** [February 8, 2020, 3:06pm UTC](https://forum.ansible.com/t/how-to-pass-node-resource-group-while-creating-aks-cluster-via-ansible-azure-rm-aks-module/32179/1 "2020-02-08T15:06:38Z")

</div>

Hello ,

I am having a difficult time to understand how one can pass node resource group while creating AKS cluster with ansible modules .

As I know , in azure cli , one has to add aks-preview addon , and in terraform there is variable to pass node\_resource\_group [https://www.terraform.io/docs/providers/azurerm/d/kubernetes\_cluster.html](https://www.terraform.io/docs/providers/azurerm/d/kubernetes_cluster.html).

This I am not able to find in Ansible .

Does anyone have any suggestion/update about this ?

Regards,  
Prakash.

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [February 11, 2020, 2:34am UTC](https://forum.ansible.com/t/how-to-pass-node-resource-group-while-creating-aks-cluster-via-ansible-azure-rm-aks-module/32179/2 "2020-02-11T02:34:24Z")

</div>

Has anyone tried this ?

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [February 24, 2020, 7:36am UTC](https://forum.ansible.com/t/how-to-pass-node-resource-group-while-creating-aks-cluster-via-ansible-azure-rm-aks-module/32179/3 "2020-02-24T07:36:27Z")

</div>

Just for benefit of other audience , you need to install galaxy role of azure \_preview\_modules to achieve this.

ansible-galaxy install azure.azure\_preview\_modules
