Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export relay to ARM template #149

Open
kristofferjalen opened this issue Jul 2, 2021 · 0 comments
Open

Export relay to ARM template #149

kristofferjalen opened this issue Jul 2, 2021 · 0 comments

Comments

@kristofferjalen
Copy link

kristofferjalen commented Jul 2, 2021

It seems to be not possible to export an Azure Hybrid Connection relay to an ARM template. When exporting the whole resource group, the relay is not included. The relay is defined by this ARM template.

The ARM template I use creates a corrupt relay, which cannot find the on-premise host. But if I add the relay manually instead, the host is found. That's the reason I need to investigate an exported ARM template.

My current ARM template:

{
    "apiVersion": "2019-08-01",
    "dependsOn":
    [
        "[resourceId('Microsoft.Web/sites', variables('webAppName'))]"
    ],
    "name": "[concat(parameters('relayName'), '/', parameters('hybridName'))]",
    "location": "[resourceGroup().location]",
    "properties":
    {
        "relayArmUri": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('relayResourceGroup'), '/providers/Microsoft.Relay/namespaces/', parameters('relayName'), '/hybridConnections/', parameters('hybridName'))]",
        "sendKeyName": "defaultSender",
        "sendKeyValue": "[listkeys(concat(variables('hybridConnectionResourceId'), '/authorizationRules/defaultSender'), '2017-04-01').primaryKey]",
        "hostname": "[parameters('hostname')]",
        "port": "[parameters('port')]",
        "serviceBusSuffix": ".servicebus.windows.net"
    },
    "type": "hybridConnectionNamespaces/relays"
}
@kristofferjalen kristofferjalen changed the title Export existing Azure Hybrid Connection relay to ARM template Export relay to ARM template Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants