-
Notifications
You must be signed in to change notification settings - Fork 4k
Add MemorySizeInGB parameter for SQL Managed Instance CRUD #28341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add MemorySizeInGB parameter for SQL Managed Instance CRUD #28341
Conversation
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for flexible memory configuration to Azure SQL Managed Instance by introducing a new MemorySizeInGb
parameter. The changes enable users to specify custom memory sizes when creating or updating managed instances through PowerShell cmdlets.
Key Changes
- Added
MemorySizeInGb
property to the managed instance model and cmdlets - Updated the adapter to handle the new memory size parameter in API calls
- Added comprehensive test coverage for the flexible memory functionality
Reviewed Changes
Copilot reviewed 11 out of 30 changed files in this pull request and generated 7 comments.
Show a summary per file
File | Description |
---|---|
src/Sql/Sql/ManagedInstance/Services/AzureSqlManagedInstanceAdapter.cs | Added memory size mapping between model and API requests/responses |
src/Sql/Sql/ManagedInstance/Model/AzureSqlManagedInstanceModel.cs | Added MemorySizeInGb property to the managed instance model |
src/Sql/Sql/ManagedInstance/Cmdlet/SetAzureSqlManagedInstance.cs | Added MemorySizeInGb parameter to Set-AzSqlManagedInstance cmdlet |
src/Sql/Sql/ManagedInstance/Cmdlet/NewAzureSqlManagedInstance.cs | Added MemorySizeInGb parameter to New-AzSqlManagedInstance cmdlet |
src/Sql/Sql/ChangeLog.md | Added placeholder entry for the flexible memory feature |
src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedInstanceCrudScenarioTests/TestCreateManagedInstanceFlexibleMemory.json | Added test session recording for flexible memory testing |
src/Sql/Sql.Test/ScenarioTests/ManagedInstanceCrudScenarioTests.ps1 | Added PowerShell test functions for flexible memory scenarios |
src/Sql/Sql.Test/ScenarioTests/ManagedInstanceCrudScenarioTests.cs | Added C# test methods for flexible memory functionality |
src/Sql/Sql.Test/ScenarioTests/Common.ps1 | Added helper function for flexible memory test parameters |
src/Sql/Sql.Management.Sdk/README.md | Updated API specification version to support flexible memory |
build.sln | Added solution file for build configuration |
@@ -93,6 +93,11 @@ public class AzureSqlManagedInstanceModel | |||
/// </summary> | |||
public int? VCores { get; set; } | |||
|
|||
/// <summary> | |||
/// Gets or sets the number of VCores. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation comment is incorrect. This property represents memory size in GB, not the number of VCores. It should be '/// Gets or sets the memory size in GB.'
/// Gets or sets the number of VCores. | |
/// Gets or sets the memory size in GB. |
Copilot uses AI. Check for mistakes.
src/Sql/Sql/ManagedInstance/Cmdlet/SetAzureSqlManagedInstance.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/ManagedInstance/Cmdlet/SetAzureSqlManagedInstance.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/ManagedInstance/Cmdlet/NewAzureSqlManagedInstance.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/ManagedInstance/Cmdlet/NewAzureSqlManagedInstance.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/ManagedInstance/Cmdlet/NewAzureSqlManagedInstance.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/ChangeLog.md
Outdated
@@ -18,6 +18,7 @@ | |||
- Additional information about change #1 | |||
--> | |||
## Upcoming Release | |||
placeholder to sql mi flexible memory feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog entry should be more descriptive and follow proper formatting. It should describe what was added in past tense, such as '* Added MemorySizeInGb parameter to New-AzSqlManagedInstance and Set-AzSqlManagedInstance cmdlets for flexible memory configuration'.
placeholder to sql mi flexible memory feature | |
* Added `MemorySizeInGb` parameter to `New-AzSqlManagedInstance` and `Set-AzSqlManagedInstance` cmdlets for flexible memory configuration. |
Copilot uses AI. Check for mistakes.
…ught when an instance doesn't exist and update comments regarding the MemorySizeInGB parameter. Update tests that are failing
Description
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.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.