I have created a ARM Template to create all dependent resources to run Azure Function app. ARM template creates necessary storage account, HCM VM, App Service, Function App, Relay and Hybrid Connection (under Relay).
ARM Template deploys all resources successfully, no error.
Problem: However, noticed that Hybrid connection was created but Overview page has nothing and no Hybrid Connection URL.
Overview page shows "HybridConnectionOverviewBlade", on click of the message shows other properties for a second (shows names space, Hybrid Connection URL) and disappears and shows back again "HybridConnectionOverviewBlade"
I used below code in ARM Template: Also, in the code I couldn't even find option/properties to add "Key, Value" pair where i can enter "endpoint", "url" of internal api.
{"apiVersion": "2017-04-01",
"name": "[parameters('namespaceName')]",
"type": "Microsoft.Relay/Namespaces",
"location": "[variables('location')]",
"sku": {
"name": "Standard"
},
"properties": {},
"resources": [
{
"apiVersion": "[variables('apiVersion')]",
"name": "[parameters('hybridConnectionName')]",
"type": "HybridConnections",
"dependsOn": [
"[concat('Microsoft.Relay/namespaces/', parameters('namespaceName'))]"
],
"properties": {
"requiresClientAuthorization": "true",
"userMetadata": "Meta Data supplied by user for hybridConnections"
}
}
]
}
ARM Template creates all resources with no error. But hybrid connection looks like broken as shown below.
Praitk