kromerm/adflab

Deployment fails: Gen1 Data Warehouse deprecated

matepolsps opened this issue · 1 comments

Initial PS deployment fails with this as follows:
\Deployment> $ARMOutput = New-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateFile LabARM.json -labNamePrefix $labNamePrefix -sqlUsername $sqlUsername -sqlPassword $sqlPassword -logicAppEmail $logicAppEmail
New-AzureRmResourceGroupDeployment : 23:01:59 - Resource Microsoft.Sql/servers/databases 'xxxxxxxlwfnhc/AirlinePerform
ance-DW' failed with message '{
"code": "45122",
"message": "'Gen1 Data Warehouse has been deprecated in this region. Please leverage Gen2 Data Warehouse.'",
"target": null,
"details": [
{
"code": "45122",
"message": "'Gen1 Data Warehouse has been deprecated in this region. Please leverage Gen2 Data Warehouse.'",
"target": null,
"severity": "16"
}
],
"innererror": []
}'
At line:1 char:14

  • ... ARMOutput = New-AzureRmResourceGroupDeployment -ResourceGroupName $re ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
    • FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
      loymentCmdlet

New-AzureRmResourceGroupDeployment : 23:02:46 - Template output evaluation skipped: at least one resource deployment op
eration failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage det
ails.
At line:1 char:14

  • ... ARMOutput = New-AzureRmResourceGroupDeployment -ResourceGroupName $re ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
    • FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
      loymentCmdlet

New-AzureRmResourceGroupDeployment : 23:02:46 - Template output evaluation skipped: at least one resource deployment op
eration failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage det
ails.
At line:1 char:14

  • ... ARMOutput = New-AzureRmResourceGroupDeployment -ResourceGroupName $re ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
    • FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
      loymentCmdlet

I have been able to solve this by adding a "c" to line 144 in LabARM.json so that it is like this:
"requestedServiceObjectiveName": "DW100c"
Originally, it had "DW100", so it looks like the "c" makes the difference between gen1 and gen2.