jeffhollan / LogicAppTemplateCreator

Script to convert Logic Apps into templates for deployment
MIT License
143 stars 74 forks source link

Client Credentials paramters not added to EventGrid connector #92

Closed MLogdberg closed 3 years ago

MLogdberg commented 3 years ago

When extracting Logic Apps with trigger for eventgrid the parameters for clientcredentials connectivity has disappered. now:

{
      "type": "Microsoft.Web/connections",
      "apiVersion": "2016-06-01",
      "location": "[parameters('logicAppLocation')]",
      "name": "[parameters('azureeventgrid_name')]",
      "properties": {
        "api": {
          "id": "[concat('/subscriptions/',subscription().subscriptionId,'/providers/Microsoft.Web/locations/',parameters('logicAppLocation'),'/managedApis/azureeventgrid')]"
        },
        "displayName": "[parameters('azureeventgrid_displayName')]"
      }
    }

And this is how it was:

{
      "type": "Microsoft.Web/connections",
      "apiVersion": "2016-06-01",
      "location": "[parameters('logicAppLocation')]",
      "name": "[parameters('azureeventgrid_name')]",
      "properties": {
        "api": {
          "id": "[concat('/subscriptions/',subscription().subscriptionId,'/providers/Microsoft.Web/locations/',parameters('logicAppLocation'),'/managedApis/azureeventgrid')]"
        },
        "displayName": "[parameters('azureeventgrid_displayName')]",
        "parameterValues": {
          "token:clientId": "[parameters('azureeventgrid_token:clientId')]",
          "token:clientSecret": "[parameters('azureeventgrid_token:clientSecret')]",
          "token:TenantId": "[parameters('azureeventgrid_token:TenantId')]",
          "token:resourceUri": "[parameters('azureeventgrid_token:resourceUri')]",
          "token:grantType": "[parameters('azureeventgrid_token:grantType')]"
        }
      }
    }