Skip to content

azure_rm_aks does not detect any change in the aad_profile property #2129

@emanueleaina

Description

@emanueleaina
SUMMARY

Updating values in the aad_profile property of azure_rm_aks does not seem to have any effect.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

azure_rm_aks

ANSIBLE VERSION
ansible [core 2.19.2]
  config file = /home/em/c/co/daimler/git/vcp-apertis-infra/ansible-playbooks/ansible.cfg
  configured module search path = ['/home/em/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.11/dist-packages/ansible
  ansible collection location = /home/em/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] (/usr/bin/python3)
  jinja version = 3.1.6
  pyyaml version = 6.0.3 (with libyaml v0.2.5)
COLLECTION VERSION
Collection         Version
------------------ -------
azure.azcollection 3.12.0
CONFIGURATION
CALLBACKS_ENABLED(/home/user/ansible-playbooks/ansible.cfg) = ['ansible.posix.profile_tasks']
COLOR_DEBUG(/home/user/ansible-playbooks/ansible.cfg) = blue
CONFIG_FILE() = /home/user/ansible-playbooks/ansible.cfg
DEFAULT_HOST_LIST(/home/user/ansible-playbooks/ansible.cfg) = ['/home/user/ansible-playbooks/inventories/staging']
EDITOR(env: EDITOR) = vim
INTERPRETER_PYTHON(/home/user/ansible-playbooks/ansible.cfg) = auto_silent
OS / ENVIRONMENT
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
STEPS TO REPRODUCE

I have an AKS cluster with aadProfile.adminGroupObjectIDs set to null and I want to set a group with:

aad_profile:
    managed: true
    admin_group_object_ids:
      - foo # replace this with an actual group guid
    enable_azure_rbac: false
EXPECTED RESULTS
  1. --check mode should detect the change
  2. without --check the aadProfile.adminGroupObjectIDs should be set to the specified groups
ACTUAL RESULTS

No change is detected, no update is submitted to the azure API at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas_prPR fixes have been madework inIn trying to solve, or in working with contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions