jeffhollan / LogicAppTemplateCreator

Script to convert Logic Apps into templates for deployment
MIT License
144 stars 74 forks source link

Including `[resourceGroup().location]` as a valid value for location parameter doesn't do anything. #66

Closed ascott18 closed 3 years ago

ascott18 commented 5 years ago

If the resource group's location is not one of the explicit values listed, deployment of the logic app will still fail. The [resourceGroup().location] value in the validValues list has no effect:

2019-09-16T17:24:05.1587254Z DEBUG: msrest.http_logger : {"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The 
2019-09-16T17:24:05.1587465Z provided value 'usgovarizona' for the template parameter 'logicAppLocation' at line '1' and column '334' is not valid. 
2019-09-16T17:24:05.1587714Z The parameter value is not part of the allowed value(s): '[resourceGroup().location],eastasia,southeastasia,centralus,e
2019-09-16T17:24:05.1587952Z astus,eastus2,westus,northcentralus,southcentralus,northeurope,westeurope,japanwest,japaneast,brazilsouth,australiaeast
2019-09-16T17:24:05.1588162Z ,australiasoutheast,westcentralus,westus2'.'.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":1,"po
2019-09-16T17:24:05.1588366Z sitionNumber":334,"snippet":""}}]}}
ascott18 commented 5 years ago

Just to clarify, usgovarizona was not an explicitly configured value - it was what was pulled as the resource group's location. This is also related to #67 in that Azure Government isn't supported.