Feb 29 2020 05:00 AM
Hi,
I´m quite new to automation in Azure but done a couple of thing, however, now we're about to create a standard to create a Team with a connected Planner from a "template"model for new customers so we can have a number of channels and a connected Planner with a number of pre-defined tasks.
So, obvious my way to go is to create a Azure Runbook and call it from a Power Automate flow.
But, I've started with the first part, which is to create the Team, that's not an issue as long I'm using my admin-credentials before, but we're a CPS-partner and have forced MFA which can't have any exclusion so I need to come up with another solution.
I've tried to read how to create an application and use Microsoft Graph, but it seems like it still need my credentials? Or am I doing anything wrong?
I've tried to use the RunAsAccount and gave that account access to both Microsoft Teams and Groups, both to create and view.
Here is the command for now:
Account : 81a087e5-XXXXXXX-ec8f092
Environment : AzureCloud
Tenant : 5f-XXXXXXXXXXXX-8c
TenantId : 5-XXXXXXXXXXXXXX-c
TenantDomain : xxxxx.xx
An error occurred while fetching team with groupId: 9-bxxxxxxxx-6
Error occurred while executing
Code: UnknownError
Message:
InnerError:
RequestId: 8-xxxxxxxxx-c9
DateTimeStamp: 2020-02-29T12:56:41
HttpStatusCode: UnknownError
An error occurred while fetching team with groupId:3xxxxxxxxxxxxx3
Error occurred while executing
Code: UnknownError
Message:
InnerError:
RequestId: 38xxxxxxxxxxxxxxxxxxxb
DateTimeStamp: 2020-02-29T12:56:41
HttpStatusCode: UnknownError
And this continues to the amount of Teams we have so it seems it can fetch some information but not everything, what have I done wrong or is it limitation in the service?
How can in that case use the App I´ve created to connect to Graph API without my credentials since it won't work because the MFA.
//Martin