Skip to content

[AKS] az aks create: Add --disable-oidc-issuer to allow disabling OIDC issuer on creation - #10625

Open
jiashun0011 wants to merge 1 commit into
Azure:mainfrom
jiashun0011:jiashunliu/aks-disable-oidc-issuer
Open

jiashun0011 wants to merge 1 commit into
Azure:mainfrom
jiashun0011:jiashunliu/aks-disable-oidc-issuer

Conversation

@jiashun0011

@jiashun0011 jiashun0011 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Suppressions
⚠️ None ️✔️ None
⚠️Azure CLI Extensions Breaking Change Test
⚠️aks-preview
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter disable_oidc_issuer

Related command

az aks create --disable-oidc-issuer

Background

OIDC issuer is enabled by default for new clusters on Kubernetes 1.34+. Customers can opt out through ARM by setting oidcIssuerProfile.enabled=false, but the CLI has no way to send that.

What changed

  • Add a preview --disable-oidc-issuer flag to az aks create that sends an explicitly disabled OIDC issuer profile.
  • Reject --disable-oidc-issuer combined with --enable-oidc-issuer or --enable-workload-identity.
  • Add unit tests and a HISTORY.rst entry under Pending.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install azdev required)
  • My extension version conforms to the Extension version schema

Copilot AI balanced review requested due to automatic review settings November 25, 2026 03:45
@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 25, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution jiashun0011! We will review the pull request and get back to you soon.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified for the new AKS creation option to opt out of the default OIDC issuer.

No open issues 🎉

What changed in this PR

Adds a preview --disable-oidc-issuer option to az aks create in the AKS preview extension, allowing users to opt out of the Kubernetes 1.34+ default.

Changes:

  • Registers the flag and sends an explicitly disabled OIDC issuer profile during cluster creation.
  • Rejects combinations with --enable-oidc-issuer or --enable-workload-identity.
  • Adds unit tests, command help, and a pending release note.
File Description
src/​aks-preview/​HISTORY.rst Documents the new creation option under Pending.
src/​aks-preview/​azext_aks_preview/​tests/​latest/​test_managed_cluster_decorator.py Tests explicit disabling and conflicting options.
src/​aks-preview/​azext_aks_preview/​managed_cluster_decorator.py Builds the disabled profile and validates conflicts.
src/​aks-preview/​azext_aks_preview/​custom.py Adds the flag to the create command signature.
src/​aks-preview/​azext_aks_preview/​_params.py Registers the preview Boolean flag.
src/​aks-preview/​azext_aks_preview/​_help.py Explains the flag, default behavior, and conflicts.

Review effort: Balanced

@x-engineering-agent

Copy link
Copy Markdown

Hi jiashun0011,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-observability-squad AKS Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants