Replace Compute local swagger with remote swagger#29101
Merged
vidai-msft merged 5 commits intoAzure:mainfrom Jan 27, 2026
Merged
Replace Compute local swagger with remote swagger#29101vidai-msft merged 5 commits intoAzure:mainfrom
vidai-msft merged 5 commits intoAzure:mainfrom
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the Compute SDK to use remote swagger files instead of local swagger files, enabled by the autorest.powershell migration. The changes consist primarily of:
- Removing the local
common.jsonswagger file - Regenerating the SDK with updated API versions and enhanced validation
- Adding new models and operations for Gallery Scripts functionality
- Updating API versions from 2024-03-03 to 2025-03-03 for gallery-related operations
Changes:
- Removed local swagger file (common.json) as the SDK now uses remote swagger
- Regenerated SDK code with additional validation (subscription ID min length checks)
- Updated API versions for SharedGallery and CommunityGallery operations (2024-03-03 → 2025-03-03)
- Added new Gallery Scripts and Gallery Script Versions operations and models
Reviewed changes
Copilot reviewed 6 out of 142 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Compute/Compute.Management.Sdk/Rest-api-specs/common.json | Removed local swagger file (no longer needed with remote swagger) |
| src/Compute/Compute/ChangeLog.md | Updated with changelog entry describing the migration |
| Multiple *Operations.cs files | Added SubscriptionId min length validation across all operations |
| SharedGallery/CommunityGallery operations | Updated API versions from 2024-03-03 to 2025-03-03 |
| Multiple Model files | Updated documentation comments for resource properties (id, name, type, location, tags) |
| New Gallery Script models | Added complete Gallery Scripts functionality with new models and operations |
| Operations.cs and related files | Fixed return type from object to Operation |
| Various model files | Added new properties (storageAccountStrategy, enableFips1403Encryption, instantAccess, etc.) |
vidai-msft
reviewed
Jan 26, 2026
Member
Author
|
Tests in record mode have been run across all core Compute resources (Disk, Gallery, VMSS, VM) and all are still passing post-migration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Compute has been generating its SDK in PowerShell using local swagger. After migrating to autorest.powershell we can now use remote swagger without the issues we were having previously.
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.