Skip to content

Commit

Permalink
Deploying Hyperscale Sql DB for PR/CI pipeline. (#3576)
Browse files Browse the repository at this point in the history
* Revert "Bumping up HealthcareSharedPackageVersion to the latest."

* Deploying Hyperscale Sql DB for PR/CI pipelines.

* Changing a variable name for the sql db compute tier.

* Updating resourceGroupRoot for creating a new CI environment.

* Removing some of the appServicePlanSku options.

* Adding B3 sku back to appServicePlanSku dropdown.
  • Loading branch information
v-iyamauchi authored Nov 3, 2023
1 parent 197c2ad commit d4b7c88
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build/ci-variables.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
ResourceGroupRegion: 'southcentralus'
# Due to deleting a keyvault with purge protection we must use a name other than msh-fhir-ci for 90 days after 5/20/2021.
resourceGroupRoot: 'msh-fhir-ci'
resourceGroupRoot: 'msh-fhir-ci4'
appServicePlanName: '$(resourceGroupRoot)-linux'
DeploymentEnvironmentName: '$(resourceGroupRoot)'
ResourceGroupName: '$(resourceGroupRoot)'
Expand Down
31 changes: 20 additions & 11 deletions samples/templates/default-azuredeploy-docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,15 @@
"appServicePlanSku": {
"type": "string",
"allowedValues": [
"F1",
"D1",
"B1",
"B2",
"B3",
"S1",
"S2",
"S3",
"P1",
"P2",
"P3",
"P4"
"P3"
],
"defaultValue": "S1"
"defaultValue": "S2"
},
"numberOfInstances": {
"type": "int",
Expand Down Expand Up @@ -173,6 +168,14 @@
"description": "Determine whether the sql schema should be automatically upgraded on server startup. If set to 'tool', sql schema will not be initialized or upgraded on the server startup. The schema migration tool will be required to perform initialize or upgrade. If set to 'auto', sql schema will be upgraded to the maximum supported version."
}
},
"sqlDatabaseComputeTier": {
"type": "string",
"allowedValues": [
"Hyperscale",
"Standard"
],
"defaultValue": "Hyperscale"
},
"fhirVersion": {
"type": "string",
"defaultValue": "R4",
Expand Down Expand Up @@ -275,7 +278,12 @@
"storageAccountName": "[concat(substring(replace(variables('serviceName'), '-', ''), 0, min(11, length(replace(variables('serviceName'), '-', '')))), uniquestring(resourceGroup().id, variables('serviceName')))]",
"registryName": "healthplatformregistry.azurecr.io",
"azureContainerRegistryUri": "[if(variables('isMAG'), '.azurecr.us', '.azurecr.io')]",
"azureContainerRegistryName": "[concat(substring(replace(variables('serviceName'), '-', ''), 0, min(11, length(replace(variables('serviceName'), '-', '')))), uniquestring(resourceGroup().id, variables('serviceName')))]"
"azureContainerRegistryName": "[concat(substring(replace(variables('serviceName'), '-', ''), 0, min(11, length(replace(variables('serviceName'), '-', '')))), uniquestring(resourceGroup().id, variables('serviceName')))]",
"isSqlHyperscaleTier": "[equals(parameters('sqlDatabaseComputeTier'),'Hyperscale')]",
"sqlSkuCapacity": "[if(variables('isSqlHyperscaleTier'), 2, 50)]",
"sqlSkuFamily": "[if(variables('isSqlHyperscaleTier'), 'Gen5', '')]",
"sqlSkuName": "[if(variables('isSqlHyperscaleTier'), 'HS_Gen5', 'Standard')]",
"sqlSkuTier": "[if(variables('isSqlHyperscaleTier'), 'Hyperscale', 'Standard')]"
},
"resources": [
{
Expand Down Expand Up @@ -463,9 +471,10 @@
"collation": "SQL_Latin1_General_CP1_CI_AS"
},
"sku": {
"name": "Standard",
"tier": "Standard",
"capacity": 50
"capacity": "[variables('sqlSkuCapacity')]",
"family": "[variables('sqlSkuFamily')]",
"name": "[variables('sqlSkuName')]",
"tier": "[variables('sqlSkuTier')]"
},
"type": "databases"
},
Expand Down

0 comments on commit d4b7c88

Please # to comment.