Skip to content

Fix network sdk generation issue#29795

Open
Pan-Qi wants to merge 10 commits into
mainfrom
bernard-network-CI
Open

Fix network sdk generation issue#29795
Pan-Qi wants to merge 10 commits into
mainfrom
bernard-network-CI

Conversation

@Pan-Qi

@Pan-Qi Pan-Qi commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Pan-Qi and others added 8 commits July 2, 2026 17:31
Co-authored-by: Venkata M <venm@microsoft.com>
…#29301)

Co-authored-by: Prachi Pravin Bhavsar <prbhavsar@microsoft.com>
Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com>
Apply autorest directives (from xiaogang) to address spec-level issues:

- Strip LRO response headers (Location, Retry-After, Azure-AsyncOperation) from 201/202 to prevent header drift

- Remove redundant 'tags' on DdosProtectionPlan

- Rename Common.CloudError -> CloudError via x-ms-client-name

- Move x-ms-azure-resource from CommonProxyResource/CommonTrackedResource and SecurityPerimeter* variants down to CommonResource and Common.SubResource pairs

- Use spec commit 587a15661041e26ff8a3059a4886ff9e092adfda with full 16-file input set (including common.json and networkSecurityPerimeter.json)

Patch hand-written Customizations/ConnectionMonitorOperation.cs to use the same SafeJsonConvert idiom the generator now emits for the Guid SubscriptionId (fixes 4 CS1503 errors).

Result: build succeeds with 0 errors / 0 warnings, replacing the prior shim commits.
- Add wildcard x-ms-client-name directive in README.md to strip the 'Common.' prefix from all swagger definitions so generated C# classes keep their legacy names (RouteTable, SubResource, NetworkInterface, etc.), unblocking the handwritten Az.Network layer.
- Add directive to delete 'format: uuid' on the subscriptionId parameter so NetworkManagementClient.SubscriptionId regenerates as string (was System.Guid in 2025-07-01).
- Update final rename directive: the legacy ManagedServiceIdentityUserAssignedIdentities generated name is now retargeted to ManagedServiceIdentityUserAssignedIdentitiesValue.
- Regenerate Network.Management.Sdk via autorest --use:@autorest/powershell@4.x.
- Compatibility workaround for TypeSpec/common prefix drift; remove once the source spec drops the 'Common.' prefix.
Copilot AI review requested due to automatic review settings July 2, 2026 07:43
@azure-client-tools-bot-prd

Copy link
Copy Markdown
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

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 wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Copilot AI review requested due to automatic review settings July 2, 2026 08:24

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 wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

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