Skip to content

Conversation

UrosKrsticMIPerf
Copy link
Contributor

@UrosKrsticMIPerf UrosKrsticMIPerf commented Aug 6, 2025

Description

Added MemorySizeInGB parameter for SQL Managed Instance to the New, Set and Get cmdlets.
Fixed existing and added new tests.
image

Update Change.md.

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

@Copilot Copilot AI review requested due to automatic review settings August 6, 2025 14:29
Copy link

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

@UrosKrsticMIPerf UrosKrsticMIPerf changed the title Add temporary changes Add MemorySizeInGB parameter for SQL Managed Instance CRUD Aug 6, 2025
Copilot

This comment was marked as outdated.

@UrosKrsticMIPerf UrosKrsticMIPerf force-pushed the dev/uroskrstic/add-memorysizeingb-for-sqlmi branch 3 times, most recently from 332864d to a0aba90 Compare August 17, 2025 20:57
@NoriZC
Copy link
Contributor

NoriZC commented Aug 17, 2025

Hi @UrosKrsticMIPerf Please help resolve the conflicts as I do not have write permission to your branch

@NoriZC
Copy link
Contributor

NoriZC commented Aug 17, 2025

/azp run

Copy link
Contributor

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@Azure Azure deleted a comment from azure-pipelines bot Aug 17, 2025
@NoriZC NoriZC self-assigned this Aug 19, 2025
Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

@UrosKrsticMIPerf
Copy link
Contributor Author

UrosKrsticMIPerf commented Aug 19, 2025

Hi @UrosKrsticMIPerf Please help resolve the conflicts as I do not have write permission to your branch

@NoriZC I've resolved the conflicts.

Copy link
Contributor

@Copilot Copilot AI left a 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 the MemorySizeInGB parameter to SQL Managed Instance CRUD operations (New, Set, Get cmdlets), enabling the creation and management of instances with flexible memory configurations. This feature is being added as a public preview capability.

Key Changes

  • Added MemorySizeInGB parameter to New-AzSqlInstance and Set-AzSqlInstance cmdlets
  • Updated the model to include MemorySizeInGB property for managed instances returned by Get-AzSqlInstance
  • Added comprehensive test coverage for the new functionality with both positive and negative test scenarios

Reviewed Changes

Copilot reviewed 14 out of 38 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/Sql/Sql/help/Set-AzSqlInstance.md Updated documentation to include MemorySizeInGB parameter and example usage
src/Sql/Sql/help/New-AzSqlInstance.md Updated documentation to include MemorySizeInGB parameter and example usage
src/Sql/Sql/help/Get-AzSqlInstance.md Updated documentation to show MemorySizeInGB field in output examples
src/Sql/Sql/ManagedInstance/Services/AzureSqlManagedInstanceAdapter.cs Added MemorySizeInGB mapping between model and SDK
src/Sql/Sql/ManagedInstance/Model/AzureSqlManagedInstanceModel.cs Added MemorySizeInGB property to the model
src/Sql/Sql/ManagedInstance/Cmdlet/SetAzureSqlManagedInstance.cs Added MemorySizeInGB parameter and logic to Set cmdlet
src/Sql/Sql/ManagedInstance/Cmdlet/NewAzureSqlManagedInstance.cs Added MemorySizeInGB parameter and logic to New cmdlet
src/Sql/Sql/ChangeLog.md Added changelog entries for the new feature
src/Sql/Sql.Test/ScenarioTests/ManagedInstanceCrudScenarioTests.ps1 Added new test functions for flexible memory testing
src/Sql/Sql.Test/ScenarioTests/ManagedInstanceCrudScenarioTests.cs Added test method registrations for flexible memory tests
src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseMoveCopyTests.ps1 Updated test to use proper resource creation/cleanup
src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseCrudScenarioTests.ps1 Updated test to use proper resource creation/cleanup
src/Sql/Sql.Test/ScenarioTests/Common.ps1 Added new test parameter functions and updated helper function signature
src/Sql/Sql.Management.Sdk/README.md Updated SDK reference to newer API version

@NoriZC
Copy link
Contributor

NoriZC commented Aug 20, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@UrosKrsticMIPerf
Copy link
Contributor Author

/azp run

Copy link
Contributor

Commenter does not have sufficient privileges for PR 28341 in repo Azure/azure-powershell

@NoriZC
Copy link
Contributor

NoriZC commented Aug 21, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@NoriZC
Copy link
Contributor

NoriZC commented Aug 21, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@NoriZC
Copy link
Contributor

NoriZC commented Aug 21, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@NoriZC
Copy link
Contributor

NoriZC commented Aug 21, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@NoriZC NoriZC merged commit 7b6baf6 into Azure:main Aug 21, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants