While creating New-CsApplicationAccessPolicy I am getting below error and I can't disable MFA in my organization
Power shell script
WRITE-HOST "Createing access policy "
$userCredential = Get-Credential
Connect-MicrosoftTeams -Credential $userCredential
New-CsApplicationAccessPolicy -Identity OnlineMeeting-policy10 - AppIds "appid" -Description "OnlineMeeting"
Grant-CsApplicationAccessPolicy -PolicyName OnlineMeeting-policy10 -Global
error details : Connect-MicrosoftTeams:
Connect-MicrosoftTeams -Credential $userCredential
One or more errors occurred. (AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000003-0000-0000-c000-000000000000'.
Trace ID: ce73772c-3440-4da1-afa2-c60787dd6700 Correlation ID: 16b7f655-d1c8-4058-a380-22d01fee233e Timestamp: 2022-08-16 09:40:51Z)
Is there any way to create csapplicationaccesspolicy from azure portal or office365 admin center because in my graph api I am using Application Permissions for creating online meetings so I need to create access policy.