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

如何使用Azure CLI移除Azure Function认证身份提供商中关联的静态Web应用

移除Azure Function中静态Web应用关联身份提供商的CLI命令

问题:使用az staticwebapp backends unlink命令可解除静态Web应用与Azure Function应用的关联,但Azure Function的Authentication > Identity Provider区域仍会保留该静态Web应用的关联记录,这会阻碍将新的静态Web应用关联至Azure Function。请问可用哪个Azure CLI命令移除该关联的身份提供商?


可以使用az webapp auth identity-provider delete命令清理Azure Function中残留的静态Web应用身份提供商关联记录,具体命令格式如下:

az webapp auth identity-provider delete --resource-group <你的资源组名> --name <你的Function应用名> --provider-name StaticWebApp

如果存在多个静态Web应用关联记录,可先通过az webapp auth identity-provider list命令查看所有身份提供商的详细信息,获取目标记录的provider-id后,使用以下命令精准删除:

az webapp auth identity-provider delete --resource-group <你的资源组名> --name <你的Function应用名> --provider-id <目标提供商ID>

执行命令前需确保已登录Azure CLI并切换至对应订阅。


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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.05 05:57:35