I have created a connection from logic app ui to connect to an instance(Dynamics ERP) to 'list items present in table' I have selected authentication via service principal and provided the appid, appsecret etc. on looking at the json view of the connection i can see below under properties
"parameterValues": { "token:clientId": "8543874-dummyvalue" "token:TenantId": "87435-afd" "token:grantType": "client_credentials"}
Please help with the bicep for this connection
I have created a connection from logic app ui to connect to an instance(Dynamics ERP) to 'list items present in table' I have selected authentication via service principal and provided the appid, appsecret etc. on looking at the json view of the connection i can see below under properties
"parameterValues": { "token:clientId": "8543874-dummyvalue" "token:TenantId": "87435-afd" "token:grantType": "client_credentials"}
Please help with the bicep for this connection
this link has resolved my issue. I have replaced with the below
parameterValues: {
'token:clientId': ClientId
'token:clientSecret': ClientSecret
'token:TenantId': subscription().tenantId
'token:grantType': client_credentials
}
In fact, there should be a default value here, resourceUri
. The logic here is consistent with the logic of obtaining access token
. There seem to be some rules to follow for different resources or scopes (defined by resourceUri
), such as azure resource or microsoft graph related.
azure resource related connection, such as Arm
, etc.
parameterValues: {
'token:clientId': 'xxxx'
'token:clientSecret': 'xxx'
'token:TenantId': 'xxxx'
'token:grantType': 'client_credentials'
'token:resourceUri': 'https://management.core.windows.net/'
}
Microsoft graph related
parameterValues: {
'token:clientId': 'xxxx'
'token:clientSecret': 'xxx'
'token:TenantId': 'xxxx'
'token:grantType': 'client_credentials'
'token:resourceUri': 'https://graph.microsoft.com/'
}
Just for discussion.