access policy 404

Florian 1 Reputation point
2022-06-24T11:57:26.977+00:00

Hello!
i'm trying to create teams meeting request with @microsoft/microsoft-graph-client
But first it say i have to create an access policy so i'm doing :

Get-AzureADApplication  

So i get :

ObjectId                             AppId                                DisplayName  
--------                             -----                                -----------  
37de00f1-836c-4f51-8924-1b9b6c419dbc           f7b9f9d8-3507-46dc-a596-60f437dbab87               BC Teams  

but when i'm trying

New-CsApplicationAccessPolicy -Identity Test-policy -AppIds "f7b9f9d8-3507-46dc-a596-60f437dbab87" -Description "description here"  

i have :

New-CsApplicationAccessPolicy: The remote server returned an error: (404) Not Found

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,063 questions
Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
603 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,458 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao-MSFT 37,496 Reputation points Microsoft Vendor
    2022-06-27T06:40:48.34+00:00

    Hi @Florian

    Have you installed the Teams module in Powershell and connect to Teams Powershell with an account which is assigned Teams Admin role?
    Reference: Install Microsoft Teams PowerShell Module

    Install-Module -Name MicrosoftTeams -Force -AllowClobber  
    Connect-MicrosoftTeams  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.