You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining a backend and use a named value, that named value is extracted in the template. So far so good.
But that backend is not set to depend on the same named value, leading to errors in deployment since the backend might be deployed before the named value is. Manually updating the template made it work just fine.
Original template code
(deleted some for readability)
{
"type": "Microsoft.ApiManagement/service/backends",
"name": "[concat(parameters('My_API_Service_name'), '/' ,'LogicAppName')]",
"apiVersion": "2019-01-01",
"properties": {
"url": "Long tings pointing to a logic app in this case",
"resourceId": "Pointing to said logic app",
"credentials": {
"query": {
"sig": [
"{{MyLogicAppKey}}"
]
},
"header": {}
},
"dependsOn": []
},
{
"type": "Microsoft.ApiManagement/service/namedValues",
"name": "[concat(parameters('My_API_Service_name'), '/', 'MyLogicAppKey')]",
"apiVersion": "2020-06-01-preview",
"properties": {
"displayName": "MyLogicAppKey",
"secret": true,
"value": "A long thing pointing to the signature in the Logic app"
},
"resources": [],
"dependsOn": []
}
My updated template code
(Just the affected part the post is getting too long)
{
"type": "Microsoft.ApiManagement/service/backends",
"name": "[concat(parameters('My_API_Service_name'), '/' ,'LogicAppName')]",
"apiVersion": "2019-01-01",
"properties": {
"url": "Long tings pointing to a logic app in this case",
"resourceId": "Pointing to said logic app",
"credentials": {
"query": {
"sig": [
"{{MyLogicAppKey}}"
]
},
"header": {}
},
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service/namedValues', parameters('My_API_Service_name'), 'MyLogicAppKey')]"
]
},
The text was updated successfully, but these errors were encountered:
DependsOn not set
When defining a backend and use a named value, that named value is extracted in the template. So far so good.
But that backend is not set to depend on the same named value, leading to errors in deployment since the backend might be deployed before the named value is. Manually updating the template made it work just fine.
Original template code
(deleted some for readability)
My updated template code
(Just the affected part the post is getting too long)
The text was updated successfully, but these errors were encountered: