Skip to content

Relationship: update to API 2026-08-01 - #10408

Open
Meghana Gupta (meghanagupta95) wants to merge 2 commits into
Azure:mainfrom
meghanagupta95:relationships/2026-08-01
Open

Meghana Gupta (meghanagupta95) wants to merge 2 commits into
Azure:mainfrom
meghanagupta95:relationships/2026-08-01

Conversation

@meghanagupta95

Copy link
Copy Markdown
Member

Summary

  • update all existing az relationship commands to stable Microsoft.Relationships API 2026-08-01
  • update service-group-member creation to use the Service Group as --source-id, matching the stable API contract
  • add generated wait commands for long-running create and delete operations
  • update live tests, help, README, changelog, and extension version 1.0.0b2

AAZ models: Azure/aaz#1107

Related command

az relationship

General Guidelines

  • Ran azdev style relationship locally
  • Ran python scripts/ci/test_index.py -q locally
  • Extension version conforms to the extension version schema

Validation

  • AAZ command-model verification passed
  • CLI linter passed with no violations
  • style passed (pylint and flake8)
  • test index passed (9 tests, 2 skipped)
  • relationship test discovery passed; all 7 scenarios are live-only and skipped outside live mode
  • wheel built successfully: relationship-1.0.0b2-py2.py3-none-any.whl
  • local command help confirms --source-id is required

Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:36
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Copilot review overview

🟡 Changes recommended

The service-group-member help contains invalid YAML indentation, and the new wait commands lack scenario coverage.

Review effort: Balanced
Findings: 3 Low severity

Open (3)
What changed in this PR

Updates az relationship to stable API 2026-08-01 and aligns service-group membership with the new source/target contract.

Changes:

  • Migrates generated commands to the stable API.
  • Adds wait commands for both relationship types.
  • Updates tests, documentation, and extension version.
File Description
src/​relationship/​setup.py Bumps version to 1.0.0b2.
src/​relationship/​README.md Documents new membership semantics.
src/​relationship/​HISTORY.rst Adds release notes.
src/​relationship/​azext_relationship/​tests/​latest/​test_relationship_scenario.py Updates live scenarios for --source-id.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​service_group_member/​_wait.py Adds membership wait command.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​service_group_member/​_show.py Updates show to stable API schema.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​service_group_member/​_delete.py Updates delete to stable API.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​service_group_member/​_create.py Implements Service Group source contract.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​service_group_member/​__init__.py Exports membership wait command.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​dependency_of/​_wait.py Adds dependency wait command.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​dependency_of/​_show.py Updates show to stable API.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​dependency_of/​_delete.py Updates delete to stable API.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​dependency_of/​_create.py Updates create to stable API.
src/​relationship/​azext_relationship/​aaz/​latest/​relationship/​dependency_of/​__init__.py Exports dependency wait command.
src/​relationship/​azext_relationship/​_help.py Updates service-group-member help.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +78 to +79
ServiceGroupMember relationships associate Azure resources with Service Groups.
The source must be a Service Group. The target is the resource identified by --resource-uri.
Comment on lines +14 to +16
@register_command(
"relationship dependency-of wait",
)
Comment on lines +14 to +16
@register_command(
"relationship service-group-member wait",
)
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@a0x1ab

Copy link
Copy Markdown
Member

/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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants