0

To create an API Connection to Azure Service Bus using Managed Identity I'm using the following template:

  "resources": [
    {
      "type": "MICROSOFT.WEB/CONNECTIONS",
      "apiVersion": "2018-07-01-preview",
      "name": "[parameters('connections_servicebus_name')]",
      "location": "[parameters('connections_servicebus_location')]",
      "kind": "V1",
      "properties": {
        "alternativeParameterValues": {},
        "displayName": "[parameters('connections_servicebus_displayname')]",
        "api": {
          "name": "[parameters('connections_servicebus_name')]",
          "displayName": "[parameters('connections_servicebus_displayname')]",
          "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('connections_servicebus_location'), '/managedApis/', 'servicebus')]",
          "type": "Microsoft.Web/locations/managedApis"
        },
        "customParameterValues": {},
        "parameterValueSet": {
          "name": "managedIdentityAuth",
          "values": {}
        }
      }
    }
  ]

that is actually working except for the fact that the 'NamespaceEndpoint' information (like: sb://mySBNS.servicebus.windows.net) is not provided anywhere and so the field appear empty on Azure portal:

enter image description here

After adding it manually, the connection and the LogicApp that is using it, start to work.

What is the json field to provide that information??

Thomas
  • 24,234
  • 6
  • 81
  • 125
Mad Druid
  • 77
  • 7
  • Nice shot @old_timer: -2 just for having used 'arm' instead of 'azure-resource-manager'. Thank you for the great contribution! – Mad Druid Jul 06 '22 at 14:17

1 Answers1

3

You can refer to this question for full details:

"parameterValueSet": {
  "name": "managedIdentityAuth",
  "values": {
    "namespaceEndpoint": {
      "value": "sb://<servicebus-namespace-name>.servicebus.windows.net/"
    }
  }
}
Thomas
  • 24,234
  • 6
  • 81
  • 125