access policy 404

Florian 1 Reputation point

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 :


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 Graph Permissions API
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,770 questions
Microsoft Graph Applications API
Microsoft Graph Applications API
A Microsoft API that enables you to manage these resources and actions related to applications in Azure Active Directory.
432 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,367 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.
424 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao-MSFT 22,006 Reputation points Microsoft Employee

    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  

    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.