Giter Site home page Giter Site logo

Comments (11)

JeroenvdBurg avatar JeroenvdBurg commented on July 29, 2024 3

hi! the logicapp connectors are quite difficult to follow when creating them with IaC.

When I create a new sql connections (with managed Identity ) in a logicapp from the portal and look at the POST request send by the browser it looks like the managed identity is defined by the following:

parameterValueSet: {
      name: 'oauthMI'
      values: {}
    }

so if you replace parameterValueType: 'Alternative' with the code above.
this still gives a bicep warning but deploys the sql connection with managed identiy

hope this helps you.

note that you can use the SubscriptionResourceId to simplify your Id parameter (subscriptionResourceId('Microsoft.Web/locations/managedApis', resourceGroup().location, api_connection_sql_name)

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024 2

The Web team is aware of the issue. There are many issues with the API definition for various resource types within the Web RP. Last time we spoke with them we agreed we should take some to address as many of them as possible, so hoping they work on this in the next 3-6 months.

cc @seligj95 / @naveedaz

from bicep-types-az.

WongKahWaiXOM avatar WongKahWaiXOM commented on July 29, 2024 2

Hi,

I'm trying to create a Bicep template for a service bus connection using Managed Identity as below:

resource apiConnectionServiceBus 'Microsoft.Web/connections@2016-06-01' = { name: serviceBusApicName location: location properties: { displayName: serviceBusApicName api: { id: serviceBusApiReferenceId } parameterValueSet: { name: 'managedIdentityAuth' values: { } } } }

It creates the API connection, but an information is missing and before the Logic App can use this connection I need to manually edit the connection to add the namespace of the service bus as below:

image

I need to know which parameter to set in Bicep to do this while deploying the API connection through Azure DevOps and avoid any manual intervention.

Thanks

According to Azure Support Engineer, there's no way Microsoft mentioned in docs for now how to set in Bicep.
However, the following pieces are provided by them.

{
              "properties": {
                           "api": {
                                         "id": "/subscriptions/[SubID]/providers/Microsoft.Web/locations/australiaeast/managedApis/servicebus"
                           },
                           "parameterValueSet": {
                                         "name": "managedIdentityAuth",
                                         "values": {
                                                       "namespaceEndpoint": {
                                                                     "value": "[Endpoint]"
                                                       }
                                         }
                           },
                           "displayName": "Test"
              },
              "kind": "V1",
              "location": "australiaeast"
}

from bicep-types-az.

JeroenvdBurg avatar JeroenvdBurg commented on July 29, 2024 1

@sjuratov great to hear that it works for you

I agree fully that the definition of the logic app connectors could be approved. Reverse engineering the api specification is not a great way and the definition is also not consistent between the connectors.

It would be great if @alex-frankel could address this to the right person within Microsoft

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

The Bicep warning is saying it does not know about the property, but that may be a false positive. As you note, the error message seems to indicate that the property is allowed, but the value 'Alternative' is not for this specific case.

The error you are hitting is not explicitly related to Bicep and we will need someone with more context on this resource type to help answer this. Otherwise, the recommendation will be to open a support case so the Web team can take a look.

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

This also seems related (possibly a duplicate) of Azure/bicep#5056

from bicep-types-az.

sjuratov avatar sjuratov commented on July 29, 2024

@JeroenvdBurg , many thanks, that solved the problem! As you have indicated and I agree, code can be further improved. I wanted something quick, dirty and working before making adjustments.

@alex-frankel , agreed it's related yet different. I am not sure who in MSFT should be documenting these details. While @JeroenvdBurg approach works, IMO it's not something we should be doing - this should be well documented for each Microsoft.Web/connections resource.

Btw, for storage account, here is correct JSON payload

parameterValueSet: {
  name: 'managedIdentityAuth'
  values: {}
}

from bicep-types-az.

alessandromoura avatar alessandromoura commented on July 29, 2024

Hi,

I'm trying to create a Bicep template for a service bus connection using Managed Identity as below:

resource apiConnectionServiceBus 'Microsoft.Web/connections@2016-06-01' = {
name: serviceBusApicName
location: location
properties: {
displayName: serviceBusApicName
api: {
id: serviceBusApiReferenceId
}
parameterValueSet: {
name: 'managedIdentityAuth'
values: { }
}
}
}

It creates the API connection, but an information is missing and before the Logic App can use this connection I need to manually edit the connection to add the namespace of the service bus as below:

image

I need to know which parameter to set in Bicep to do this while deploying the API connection through Azure DevOps and avoid any manual intervention.

Thanks

from bicep-types-az.

PrasannaK12 avatar PrasannaK12 commented on July 29, 2024

Hello I'm also facing issues, while creating logic app api connection arm for SQL ,
Getting below error.

"the api connection 'sql' is not configured to support managed identity".
Anyone know why it's showing?

from bicep-types-az.

alefred avatar alefred commented on July 29, 2024

Hello! there is any plan to fix this warning for resource type like for web connection managed identity :

parameterValueSet: {
      name: 'oauthMI'
      values: {}
    }

Shall I need to refeer to another team ?

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

@seligj95 can you take a look at this one?

from bicep-types-az.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.