Need Assistance with Automating API Connection Setup #17987
ashuit49
started this conversation in
Authoring Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
We have created an 'API Connection' for Azure Logic App resources using an Azure Bicep template. The connectivity to the on-premises server is facilitated through the On-Premises Data Gateway, enabling Azure Logic Apps to securely interact with the File System.
*Bicep Template:-
resource fileSystemConnection 'Microsoft.Web/connections@2018-07-01-preview' = {
name: 'test-connection'
location: location
kind: 'V2'
properties: {
alternativeParameterValues: {}
api: {
id: subscriptionResourceId('Microsoft.Web/locations/managedApis', <file_path>, 'filesystem')
type: 'Microsoft.Web/locations/managedApis'
}
displayName: 'api-test-connection'
parameterValues: {
rootfolder:
authType: 'windows'
username:
password:
gateway: {
name: opdgName
id:
type: 'Microsoft.Web/connectionGateways'
}
}
customParameterValues: {}
}
}
The connection includes authorization access for the Logic App resources, and setup and management have been configured via the Azure Bicep template, including securely storing the username and password in Azure Key Vault and referencing them through secret URIs.
However, after deploying the resources via Azure Bicep, we are facing an issue where manual intervention is required to authorize using username and password, save the changes, PFA

and then establish the connection successfully. Without this manual step, the connection results in an error.
Is there any way to fully automate this process, including providing the username and password, without the need for manual input?
We would greatly appreciate any solutions or recommendations you may have.
Beta Was this translation helpful? Give feedback.
All reactions