An Azure service that automates the access and use of data across clouds without writing code.
Due to character limit posting as answer. Are you defining the "Microsoft.Web/connections" in your ARM templated or just referring the existing connection. As it looks like the value are not correctly specified in the Microsoft.Web/connections therefore when you reconfigure it works fine. For your reference sharing from the below from quick start templates.
"resources": [
{
"type": "Microsoft.Web/connections",
"apiVersion": "2018-07-01-preview",
"name": "[parameters('storageConnectionName')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]"
],
"properties": {
"api": {
"id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', parameters('location'), 'azureblob')]"
},
"parameterValues": {
"accountName": "[parameters('storageAccountName')]",
"accessKey": "[listKeys(variables('storageAccountId'), '2019-04-01').keys[0].value]"
},
"testLinks": [
{
"requestUri": "[uri(parameters('azureMgmtUri'), concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Web/connections/', parameters('storageConnectionName'), '/extensions/proxy/testconnection?api-version=2018-07-01-preview'))]",
"method": "get"
}
]
}
}