-
Notifications
You must be signed in to change notification settings - Fork 4k
Support for Serverless specific parameters for CRUD #9105
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
Conversation
Can one of the admins verify this patch? |
.SYNOPSIS | ||
Tests updating a vcore database | ||
#> | ||
function Test-UpdateServerlessDatabase() |
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.
Good test, thx
Your PR will fail with STatic Analysis Issues, you will need to add suppressions for these: https://dev.azure.com/azure-sdk/29ec6040-b234-4e31-b139-33dc4287b756/_apis/build/builds/23503/artifacts?artifactName=analyze-windows&fileId=D1580ED802489C071199F16D29F3F84A7E30EB7C465B0CE5422376583830D7DB01&fileName=SignatureIssues.csv&api-version=5.0-preview.3 |
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.
MinimumCapacity was correct. Not MinimumVCoreCapacity.
{ | ||
if (string.IsNullOrWhiteSpace(tier)) | ||
{ | ||
return null; | ||
} | ||
|
||
return SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? tier; | ||
return (SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? tier) + (isServerless ? "_S" : ""); |
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.
There is already a unit test for this method, would be nice if you added isServerless
coverage to that test.
@@ -213,6 +223,8 @@ public AzureSqlDatabaseModel(string resourceGroup, string serverName, Management | |||
ReadScale = readScale; | |||
|
|||
ZoneRedundant = false; | |||
AutoPauseDelayInMinutes = null; | |||
MinimumCapacity = null; |
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.
You should be setting these. Otherwise they will always be null in response!
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.
Sorry, I'm wrong. This is converting from legacy model
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.
Need response values to be populated
@azuresdkci add to whitelist |
Marked as do not merge until the release branch is merged back |
Description
Adding MinCapacity and AutoPauseDelay and ComputeModel optional parameters for Serverless databases CRUD
Checklist
CONTRIBUTING.md
platyPS
module