Azure @Microsoft/Microsoft-Graph-Client 404尝试创建访问策略

发布于 2025-02-10 05:29:15 字数 847 浏览 1 评论 0原文

我正在尝试与 @Microsoft/Microsoft-Graph-Client建立团队会议,但首先说我必须使用PowerShell为应用程序创建访问策略。好的,所以我像这样得到我的应用ID:

Get-AzureADApplication

它响应我:

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

我使用此ID

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

,但是一个404错误

New-CsApplicationAccessPolicy : Le serveur distant a retourné une erreur : (404) Introuvable.

(这是法语,这是指无法返回404)

,我真的需要帮助,我没有有关如何解决此问题的线索。

I'm trying to create a teams meeting with @microsoft/microsoft-graph-client but first it say that i have to create an access policy for my app with powershell. OK so i'm getting my app id like so:

Get-AzureADApplication

It respond me :

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

So i'm using this id

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

But a 404 error

New-CsApplicationAccessPolicy : Le serveur distant a retourné une erreur : (404) Introuvable.

(that's in french and it just mean server return 404 not found)

I realy need help on this i have no clue on how to fix this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

标点 2025-02-17 05:29:15

请升级 Microsoft Teams PowerShell Module 使用Admin凭据使用Update-Module

Update-Module MicrosoftTeams

和Connect-MicrosoftTeams,并带有Admin凭据。

我尝试做同样的事情,并可以成功执行命令

”在此处输入图像描述”

注意:

  1. skype for Business在线管理员负责
    管理政策。
  2. Skype用于商务在线管理员可以管理团队和Skype
    通过PowerShell进行业务在线应用程序策略。
  3. for Business Online Connector的Skype目前是最新的一部分
    团队PowerShell模块。

Reference : microsoft-teams-access-policy-new-csapplicationaccesspolicy-returns- 404-SO Ref

Please upgrade the microsoft teams powershell module to the latest using Update-Module

Update-Module MicrosoftTeams

and Connect-MicrosoftTeams with Admin credential .

I tried doing the same and could execute command successfully

enter image description here

Note:

  1. Skype for Business Online administrators are responsible for
    managing policies.
  2. Skype for Business Online Admins can manage both Teams and Skype for
    Business Online app policies through PowerShell.
  3. Skype for Business Online Connector is currently part of the latest
    Teams PowerShell module.

Reference : microsoft-teams-access-policy-new-csapplicationaccesspolicy-returns-404-SO ref

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文