问题
I have a logic app with an Office 365 connection. Of course I can authenticate this in the portal manually but I would have to do this every time I deploy from my deployment automation pipeline.
I have found a post of this but it is no longer available:
Authenticating office365 logic app connector with PS
The link that is no longer available
Here is what I mean in the portal:
Any idea how I automate this with say Powershell or az clie or something else?
thanks Russ
回答1:
This question was answered by Microsoft:
Issue description:
You are unable to change the user name for the Office 365 API connection
Scope definition:
To provide assistance on the above issue with Office 365 API connection
Troubleshooting steps:
I tried the repro of the scenario and tried the below options
- Used incognito window- did not help
- Tried creating a new API connection with the new user- did not help
- Logged out of the office 365 suite- did not help
- Logged in to the machine with the new account- it worked
Resolution:
Based on the observations, I had discussions with the experts, and it seems the connector currently can only take windows AD authentication and hence the issue. Product group has this feature update in the backlog and would be updating the connector in coming days, we do not have an ETA yet on this.
Workaround option:
- Use portal from a server which doesn’t need domain user login. Login to the server with non-domain user
- Use Mozilla Firefox browser- this has worked for few customers.
来源:https://stackoverflow.com/questions/53530638/how-do-you-authenticate-a-logic-app-microsoft-web-connections-connection-with-co