You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启用Microsoft Graph计量API时New-AzResourceGroup命令报错求助

问题解决:创建Microsoft.GraphServices/Accounts资源报错修复

错误原因

你误用了PowerShell命令:New-AzResourceGroup是用于创建资源组的工具,它的-ResourceGroupName和-Name参数作用重复(均为指定资源组名称),因此触发了"参数重复绑定"的错误。而你要创建的Microsoft.GraphServices/Accounts类型资源,需要使用New-AzResource命令。

正确命令示例

New-AzResource -ResourceGroupName myRG1 -Name myGraphAppBilling `
  -ResourceType Microsoft.GraphServices/Accounts `
  -Properties '{"0000.1111.2222..": "myAppGUID"}' `
  -Location Global `
  -Subscription mySubscriptionGUID

关键注意事项

  • 确保myRG1资源组已存在,若不存在先执行New-AzResourceGroup -ResourceGroupName myRG1 -Location Global创建
  • 将命令中的myAppGUID替换为你的第三方应用实际GUID
  • 将mySubscriptionGUID替换为目标Azure订阅的GUID

内容的提问来源于stack exchange,提问作者AbdUlu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.24 02:22:11