Skip to content
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

Fix to handle templates recommended in batches in case of SQL DB #25581

Merged
merged 9 commits into from
Apr 12, 2024

Conversation

sahuroshan
Copy link
Contributor

In case the assesed instance has more than 50 dbs then instead of one template we will be getting list of templates from the nuget, This PR is to handle that change only.

ADO task link - https://msdata.visualstudio.com/Database%20Systems/_workitems/edit/3100628

@coveralls
Copy link

coveralls commented Apr 11, 2024

Pull Request Test Coverage Report for Build 8660920157

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.003%) to 41.744%

Files with Coverage Reduction New Missed Lines %
extensions/notebook/src/book/bookTreeView.ts 1 36.91%
extensions/notebook/src/dialog/configurePython/configurePythonWizard.ts 1 45.22%
Totals Coverage Status
Change from base Build 8639448764: 0.003%
Covered Lines: 30724
Relevant Lines: 68888

💛 - Coveralls

export const TARGET_PROVISIONING_TITLE = localize('sql.migration.target.provisioning.title', "Save Template");
export const GENERATE_ARM_TEMPLATE = localize('sql.migration.target.provisioning.generate.template', "Generate Template");
export const CLOSE_DIALOG = localize('sql.migration.target.provisioning.close', "Close");
export const TARGET_PROVISIONING_DESCRIPTION = localize('sql.migration.target.provisioning.description', "Below is the ARM script for the recommended target SKU. You can save the script as template.");
export const DISPLAY_ARM_TEMPLATE_LIMIT = localize('sql.migration.target.provisioning.template.display.limit', "A single ARM template has a deployment limitation of a maximum 50 Azure SQL Databases. The template for the first 50 databases is displayed below. To view all templates, save the template JSON file in a local storage or Azure Blob storage.")
Copy link
Contributor

@Ramudaykumar Ramudaykumar Apr 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"A single ARM template has a deployment limitation of a maximum 256 parameters, so deploy in batches of 50 DBs."

This should be 1st sentence for correct msg, you may add this link as well. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/best-practices#template-limits

Current msg is not correct as there is no limitation on number of DBs but it is on number of Parameters.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this text was provided by abhishek. I think parameters in templates in very low level details of code that we are explaining to Cx.

@Ramudaykumar
Copy link
Contributor

Overall, it looks good, please take comments and update SQLToolsService version with latest one.

Copy link
Contributor

@Ramudaykumar Ramudaykumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

@sahuroshan sahuroshan merged commit 91656f1 into main Apr 12, 2024
14 checks passed
@sahuroshan sahuroshan deleted the roshansahu/armTemplateList branch April 12, 2024 12:02
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.

None yet

4 participants