Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Unable to create non PaaS sample environment with sql server due to reference to invalid template #124

Open
tusv opened this issue Mar 1, 2021 · 0 comments

Comments

@tusv
Copy link
Contributor

tusv commented Mar 1, 2021

Describe the bug
Creating non-PaaS sample environment with sql server is failing with following errror.

New-AzResourceGroupDeployment: /home/my/fhir-server-samples/deploy/scripts/Create-FhirServerSamplesEnvironment.ps1:197
Line |
 197 |  New-AzResourceGroupDeployment -TemplateUri $sandboxTemplate -environm …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | 8:27:26 PM - Error: Code=InvalidContentLink; Message=Unable to download deployment content from
     | 'https://raw.githubusercontent.com/microsoft/fhir-server/master/samples/templates/default-azuredeploy-sql.json'. The tracking Id is
     | 'a8e0163d-bb4c-4440-a604-21df446fe750'. Please see https://aka.ms/arm-deploy for usage details.

Doesn't look like the template is valid since it doesn't exist at that location. It looks like we are supposed to use same template for both cosmos/sql but pass different values for parameters.

Code snippet
https://github.com/microsoft/fhir-server-samples/blob/master/deploy/scripts/Create-FhirServerSamplesEnvironment.ps1#L153-L158

#Template URLs
$fhirServerTemplateUrl = "https://raw.githubusercontent.com/microsoft/fhir-server/master/samples/templates/default-azuredeploy.json"
if ($PersistenceProvider -eq 'sql')
{
    $fhirServerTemplateUrl = "https://raw.githubusercontent.com/microsoft/fhir-server/master/samples/templates/default-azuredeploy-sql.json"
}
  • What is your PowerShell version?
Name                           Value
----                           -----
PSVersion                      7.1.1
PSEdition                      Core
GitCommitId                    7.1.1
OS                             Linux 4.15.0-1108-azure #120~16.04.1-Ubuntu SMP Thu Feb 11 07:47:15 UTC 2021
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
  • What is your Az version?
    5.5.0

To Reproduce
Steps to reproduce the behavior, including exact commands you are running:

cd fhir-server-samples/deploy/scripts
$AdminPassword = ConvertTo-SecureString ****** -AsPlainText -Force
$SqlAdminPassword = ConvertTo-SecureString ****** -AsPlainText -Force
.\Create-FhirServerSamplesEnvironment.ps1 -EnvironmentName fhir-sql -UsePaaS $false -EnableExport $true -AdminPassword $AdminPassword -PersistenceProvider sql -SqlAdminPassword $SqlAdminPassword

Expected behavior
Sample environment should be created

Desktop (please complete the following information):
CloudShell

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant