Skip to content

Azure Clean Room: CLI for 2026-04-30-preview#9848

Merged
necusjz merged 3 commits intoAzure:mainfrom
anrdesai:feature-managedcleanroom-2026-04-30
May 7, 2026
Merged

Azure Clean Room: CLI for 2026-04-30-preview#9848
necusjz merged 3 commits intoAzure:mainfrom
anrdesai:feature-managedcleanroom-2026-04-30

Conversation

@anrdesai
Copy link
Copy Markdown
Contributor

@anrdesai anrdesai commented May 5, 2026

  • Regenerate aaz/ subtree from openapi.json (2026-04-30-preview)
  • Add 'collaboration get-readonly-kube-config' command
  • PUT -> PATCH on collaboration/consortium/consortium-view update
  • Restore PrivateEndpointUtil + rewire URLs through env-var-driven namespace

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

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 wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

anrdesai and others added 2 commits May 5, 2026 10:27
…ate.CleanRoom patches

- Regenerate aaz/ subtree from openapi.json (2026-04-30-preview)
- Add 'collaboration get-readonly-kube-config' command
- PUT -> PATCH on collaboration/consortium/consortium-view update
- Restore PrivateEndpointUtil + rewire URLs through env-var-driven namespace

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…review

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 13:40
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 5, 2026

⚠️Azure CLI Extensions Breaking Change Test
⚠️managedcleanroom
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd managedcleanroom collaboration create cmd managedcleanroom collaboration create added parameter resource_location
⚠️ 1010 - ParaPropUpdate managedcleanroom collaboration enable-workload cmd managedcleanroom collaboration enable-workload update parameter workload_type: updated property choices from ['analytics'] to ['Analytics']
⚠️ 1001 - CmdAdd managedcleanroom collaboration get-readonly-kube-config cmd managedcleanroom collaboration get-readonly-kube-config added
⚠️ 1006 - ParaAdd managedcleanroom collaboration update cmd managedcleanroom collaboration update added parameter resource_location
⚠️ 1006 - ParaAdd managedcleanroom consortium create cmd managedcleanroom consortium create added parameter resource_location
⚠️ 1006 - ParaAdd managedcleanroom consortium update cmd managedcleanroom consortium update added parameter resource_location

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 5, 2026

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the managedcleanroom Azure CLI extension release (1.0.0b6) and introduces a new generated AAZ command to retrieve a collaboration’s read-only kubeconfig.

Changes:

  • Bump extension version to 1.0.0b6 and add release notes.
  • Add az managedcleanroom collaboration get-readonly-kube-config (AAZ-generated command) and export it from the collaboration command package.
  • Wire the new command’s mgmt-plane URL through PrivateEndpointUtil.get_configured_namespace().

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/managedcleanroom/setup.py Version bump to 1.0.0b6.
src/managedcleanroom/HISTORY.rst Adds 1.0.0b6 release notes describing the update.
src/managedcleanroom/azext_managedcleanroom/aaz/latest/managedcleanroom/collaboration/_get_readonly_kube_config.py Adds the generated AAZ command implementation for fetching the read-only kubeconfig.
src/managedcleanroom/azext_managedcleanroom/aaz/latest/managedcleanroom/collaboration/__init__.py Exposes the new command via wildcard import.

Comment thread src/managedcleanroom/HISTORY.rst
"managedcleanroom collaboration get-readonly-kube-config",
)
class GetReadonlyKubeConfig(AAZCommand):
"""Gets the readonly kubeconfig for the collaboration.
…apply patches

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@yonzhan yonzhan requested a review from necusjz May 5, 2026 22:11
+++++++
* Update commands to reflect new API version 2026-04-30-preview
* Added: ``az managedcleanroom collaboration get-readonly-kube-config`` to fetch the read-only kubeconfig for a collaboration
* PUT -> PATCH on ``collaboration update``, ``consortium update``, ``consortium-view update``
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.

NIT:

PUT -> PATCH on ``collaboration update``, ``consortium update``, ``consortium-view update``

This is not required. Whenever we auto-generate, it suggests PUT but it should be PATCH, something to fix at the TSP maybe.

@anantshankar17
Copy link
Copy Markdown

@necusjz can you please take a look at this?

@necusjz
Copy link
Copy Markdown
Member

necusjz commented May 6, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@kkarmakarMS
Copy link
Copy Markdown
Contributor

Related to Azure/aaz#1000

@anantshankar17
Copy link
Copy Markdown

anantshankar17 commented May 6, 2026

@necusjz thanks, seems like all tests passed. Can you please help merging this ?

@anantshankar17
Copy link
Copy Markdown

@necusjz thanks, seems like all tests passed. Can you please help merging this ?

@necusjz can you please check ? this is pushing a release..

@necusjz necusjz merged commit 8ac7f57 into Azure:main May 7, 2026
23 checks passed
@azclibot
Copy link
Copy Markdown
Collaborator

azclibot commented May 7, 2026

[Release] Update index.json for extension [ managedcleanroom-1.0.0b6 ] : https://dev.azure.com/msazure/One/_build/results?buildId=163222385&view=results

@anrdesai anrdesai deleted the feature-managedcleanroom-2026-04-30 branch May 7, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants