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

调用Microsoft.DomainRegistration/generateSsoRequest遇404,无法完成Cloudflare托管Azure域名配置

Azure Domain Registration生成SSO请求时出现404 Not Found错误

我正在按照Microsoft Q&A文章中的步骤配置Cloudflare托管Azure域名,过程中需要通过PowerShell为Azure Domain Registration生成SSO请求,但调用Microsoft.DomainRegistration/generateSsoRequest端点时始终收到404 Not Found错误,导致无法继续完成Cloudflare的配置。

我在本地环境和Azure门户的Cloud Shell中都运行了以下PowerShell代码:

$subscriptionID = "**********************"
Connect-AzAccount -TenantId **********************
Set-AzContext -Subscription $subscriptionID
$token = (Get-AzAccessToken).Token
$headers = @{"Authorization" = "Bearer $token"}
$uri = "https://management.azure.com/subscriptions/$subscriptionID/providers/Microsoft.DomainRegistration/generateSsoRequest?api-version=2023-01-01"
$response = Invoke-WebRequest -Method Post -Uri $uri -Headers $headers

原本预期代码能成功生成SSO请求,实际收到的错误如下:

Invoke-WebRequest: Response status code does not indicate success: 404 (Not Found).

我已经验证过连接的Azure账号和订阅都是正确的,使用的也是最新的API版本(2023-01-01),但无论在本地还是Cloud Shell中都出现同样的错误。目前不确定是端点路径有误,还是需要额外的权限或配置才能发起该请求。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.17 06:04:52