We currently have an ARM template that deploys a Logic App with a Salesforce connector.
The issue we face is that once the template is deployed we have to manually authorize the Salesforce connection:
Is it possible to add the authorization to the ARM Template? If so how would this be achieved?
AFAIK, it is impossible to authorize Salesforce Connection via the ARM template. We just could create the API connection via the template at most, the ARM template is based on the azure resources, it will not store your credential(e.g. username, password).
Workarounds:
1.You could separately create two templates for Logic App and API connection, then you just need to authorize the connection once when it was deployed, let the logic app use the connection.
2.If you need to finalize the API Connection creation without opening every Logic App, you could try the powershell script LogicAppConnectionAuth, it will then open the consent link and complete authorization to enable a connection, see this link.