[Az.SqlVirtualMachine] Update Autorest v3 to v4#29565
Merged
Merged
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
Updates the Az.SqlVirtualMachine AutoRest-based module to align with AutoRest PowerShell v4 generation, including regenerated cmdlet help/docs, updated custom cmdlets, and refreshed test assets.
Changes:
- Updated AutoRest configuration for the SqlVirtualMachine module and regenerated outputs for v4.
- Regenerated cmdlet help/docs and adjusted exposed model/type references (removing
Api20220801Preview-scoped types in docs/tests). - Updated Pester tests and recordings for the regenerated cmdlets/models.
Reviewed changes
Copilot reviewed 59 out of 66 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/SqlVirtualMachine/SqlVirtualMachine/help/Update-AzSqlVMGroup.md | Regenerated help reflecting v4 typing/output model updates. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Update-AzSqlVM.md | Regenerated help reflecting v4 typing/output model updates. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Start-AzSqlVMAssessment.md | Regenerated help content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Remove-AzSqlVMGroup.md | Regenerated help content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Remove-AzSqlVM.md | Regenerated help content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Remove-AzAvailabilityGroupListener.md | Regenerated help; adds/reflects new identity-based parameter set. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/New-AzSqlVMGroup.md | Regenerated help; adds JsonString/JsonFilePath parameter sets and string-typed enums. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/New-AzSqlVM.md | Regenerated help; string-typed enums and updated output model type. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject.md | Regenerated help; updated online link casing and output type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/New-AzSqlVirtualMachineAgReplicaObject.md | Regenerated help; string-typed enums and updated output type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/New-AzAvailabilityGroupListener.md | Regenerated help; updated model interface namespaces and outputs. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Invoke-AzSqlVMTroubleshoot.md | Regenerated help; adds JsonString/JsonFilePath parameter sets and string-typed scenario. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Invoke-AzRedeploySqlVM.md | Regenerated help content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Get-AzSqlVMGroup.md | Regenerated help; updated output model type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Get-AzSqlVM.md | Regenerated help; updated output model type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Get-AzAvailabilityGroupListener.md | Regenerated help; adds group-identity parameter set and updated outputs. |
| src/SqlVirtualMachine/SqlVirtualMachine/help/Az.SqlVirtualMachine.md | Regenerated module help index/summary text. |
| src/SqlVirtualMachine/SqlVirtualMachine/ChangeLog.md | Added an upcoming release note entry related to the change. |
| src/SqlVirtualMachine/SqlVirtualMachine/Az.SqlVirtualMachine.psd1 | Updated module manifest formatting/generated metadata. |
| src/SqlVirtualMachine/SqlVirtualMachine.sln | Updated solution project GUID mapping for the generated project reference. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Start-AzSqlVMAssessment.Recording.json | Updated HTTP playback recording for Start-AzSqlVMAssessment. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Remove-AzAvailabilityGroupListener.Tests.ps1 | Updated test to use non-preview model types. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Get-AzSqlVMGroup.Tests.ps1 | Updated test to use non-preview model types. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Get-AzSqlVMGroup.Recording.json | Updated HTTP playback recording for Get-AzSqlVMGroup. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Get-AzSqlVM.Tests.ps1 | Updated test to use non-preview model types. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Get-AzSqlVM.Recording.json | Updated HTTP playback recording for Get-AzSqlVM. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Get-AzAvailabilityGroupListener.Tests.ps1 | Updated test to use non-preview model types. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/Get-AzAvailabilityGroupListener.Recording.json | Updated HTTP playback recording for Get-AzAvailabilityGroupListener. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/test/env.json | Updated test environment values used by Pester tests. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/README.md | Updated AutoRest v4 configuration and directives for generation/customization. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/Properties/AssemblyInfo.cs | Updated assembly version attributes. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/generate-info.json | Updated generation metadata identifier. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Update-AzSqlVMGroup.md | Regenerated docs for v4 typing/output model updates. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Update-AzSqlVM.md | Regenerated docs for v4 typing/output model updates. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Start-AzSqlVMAssessment.md | Regenerated docs content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Remove-AzSqlVMGroup.md | Regenerated docs content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Remove-AzSqlVM.md | Regenerated docs content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Remove-AzAvailabilityGroupListener.md | Regenerated docs; adds/reflects new identity-based parameter set. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/New-AzSqlVMGroup.md | Regenerated docs; adds JsonString/JsonFilePath parameter sets and string-typed enums. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/New-AzSqlVM.md | Regenerated docs; string-typed enums and updated output model type. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject.md | Regenerated docs; updated online link casing and output type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/New-AzSqlVirtualMachineAgReplicaObject.md | Regenerated docs; string-typed enums and updated output type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/New-AzAvailabilityGroupListener.md | Regenerated docs; updated model interface namespaces and outputs. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Invoke-AzSqlVMTroubleshoot.md | Regenerated docs; adds JsonString/JsonFilePath parameter sets and string-typed scenario. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Invoke-AzRedeploySqlVM.md | Regenerated docs content for identity parameter documentation. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Get-AzSqlVMGroup.md | Regenerated docs; updated output model type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Get-AzSqlVM.md | Regenerated docs; updated output model type namespace. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Get-AzAvailabilityGroupListener.md | Regenerated docs; adds group-identity parameter set and updated outputs. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/docs/Az.SqlVirtualMachine.md | Regenerated module docs index metadata (e.g., module GUID) and summary text. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/custom/Update-AzSqlVMGroup.ps1 | Updated custom update wrapper to use non-preview model types and updated internal/private cmdlets. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/custom/Update-AzSqlVM.ps1 | Updated custom update wrapper to use string-typed enums and PS argument completers. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/custom/New-AzSqlVM.ps1 | Updated custom create wrapper to use string-typed enums and PS argument completers. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/custom/New-AzAvailabilityGroupListener.ps1 | Updated custom create wrapper to use non-preview model types. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/custom/autogen-model-cmdlets/New-AzSqlVirtualMachineMultiSubnetIPConfigurationObject.ps1 | Updated autogen model cmdlet to non-preview model type and model-cmdlet attribute. |
| src/SqlVirtualMachine/SqlVirtualMachine.Autorest/custom/autogen-model-cmdlets/New-AzSqlVirtualMachineAgReplicaObject.ps1 | Updated autogen model cmdlet to non-preview model type and string-based completers. |
Comment on lines
105
to
110
| [Parameter()] | ||
| [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Support.SqlManagementMode])] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.PSArgumentCompleterAttribute("Full","Lightweight","NoAgent")] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Category('Body')] | ||
| [Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Support.SqlManagementMode] | ||
| [System.String] | ||
| # SQL Server Management type. | ||
| ${SqlManagementType}, |
Comment on lines
39
to
+48
| inlining-threshold: 100 | ||
| resourcegroup-append: true | ||
| nested-object-to-string: true | ||
| identity-correction-for-post: true | ||
|
|
||
| # For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option | ||
| use-extension: | ||
| "@autorest/powershell": "3.x" | ||
| disable-transform-identity-type: true | ||
|
|
||
| directive: | ||
| - remove-operation: | ||
| - SqlVirtualMachineGroups_Update | ||
| - from: swagger-document | ||
| where: $.definitions.SqlVirtualMachineGroupProperties.properties.wsfcDomainProfile | ||
| transform: $['x-ms-mutability'] = ["read", "update", "create"] | ||
| - from: swagger-document |
Comment on lines
20
to
22
| ## Upcoming Release | ||
| * Improved user experience and consistency. This may introduce breaking changes. Please refer to [here](https://go.microsoft.com/fwlink/?linkid=2340249). | ||
|
|
Comment on lines
63
to
67
| "Response": { | ||
| "StatusCode": 200, | ||
| "StatusCode": 404, | ||
| "Headers": { | ||
| "Cache-Control": [ "no-cache" ], | ||
| "Pragma": [ "no-cache" ], |
Comment on lines
64
to
+69
| "Response": { | ||
| "StatusCode": 200, | ||
| "StatusCode": 404, | ||
| "Headers": { | ||
| "Cache-Control": [ "no-cache" ], | ||
| "Pragma": [ "no-cache" ], | ||
| "x-ms-request-id": [ "3d6ecce5-8589-49db-96be-0a3ab9da9fac" ], | ||
| "Server": [ "Microsoft-HTTPAPI/2.0" ], | ||
| "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], | ||
| "x-ms-correlation-request-id": [ "c09bcc2b-9229-4765-99b1-0879c4ef8dc4" ], | ||
| "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230310T031443Z:c09bcc2b-9229-4765-99b1-0879c4ef8dc4" ], | ||
| "x-ms-failure-cause": [ "gateway" ], |
Comment on lines
20
to
24
| "Response": { | ||
| "StatusCode": 200, | ||
| "StatusCode": 404, | ||
| "Headers": { | ||
| "Cache-Control": [ "no-cache" ], | ||
| "Pragma": [ "no-cache" ], |
Comment on lines
20
to
24
| "Response": { | ||
| "StatusCode": 202, | ||
| "StatusCode": 404, | ||
| "Headers": { | ||
| "Cache-Control": [ "no-cache" ], | ||
| "Pragma": [ "no-cache" ], |
Pan-Qi
previously approved these changes
May 22, 2026
|
To the author of the pull request, |
Pan-Qi
approved these changes
May 25, 2026
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
Preannouncement PR: #29199
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.