部署 Microsoft azure 模板(CSP frontstore)的问题

问题描述 投票:0回答:1

首先需要更新readme.md,因为这部分是不同的。Build & Deploy on your own

现在,我已经尝试通过部署到 azure 按钮进行部署。

我得到了这个错误

Deployment to resource group 'new-test' failed.
Additional details from the underlying API that might be helpful: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.

试图用visual studio 2019部署得到了同样的thingfollowing这篇文章(这是过时的)。https:/docs.microsoft.comen-usarchiveblogsiwilliamsreseller-storefront。

在第二次尝试后,它构建成功(只是做了重新部署,没有任何修改

但还是得到了默认的页面,有这样的文字

Hey, App Service developers!

Your app service is up and running.
Time to take the next step and deploy your code.

试图在visual studio中通过发布选项发布。

充满了所有的选项 Web.config

没有找到任何一个选项说秘钥填写发布成功,打开网站后在浏览器中得到了以下信息。

[AdalServiceException: Response status code does not indicate success: 401 (Unauthorized).]
   Microsoft.Identity.Core.OAuth2.<GetResponseAsync>d__18`1.MoveNext() in D:\a\1\s\src\Microsoft.IdentityModel.Clients.ActiveDirectory\Core\OAuth2\OAuthClient.cs:66

[AdalServiceException: AADSTS7000215: Invalid client secret is provided.
Trace ID: 6c8d61c0-69fd-45b0-a796-6e20a4b83500
Correlation ID: bfd2304e-86f4-4b0d-b1d7-409c7a1db9aa
Timestamp: 2020-04-27 01:06:26Z]
.net azure azure-active-directory azure-functions azure-web-sites
1个回答
0
投票

更新

也许这个 文件 是对u有用的。

sdk的代码 是最新的。

PRIVIOUS

错误msg非常清楚。Invalid client secret is provided. 所以,你应该检查在 web.config. 更多详情,您可以参考以下内容 场地.

您需要浏览到合作伙伴中心。https:/partnercenter.microsoft.com。并使用具有管理员代理和全局管理员权限的凭证登录。这一点很重要。然后你可以看到图片。

enter image description here

如果你需要 Partner Center Application Secret,你可以点击 Add Key 按钮,并复制它。如果你需要 Web Portal Client Secret,你可以点击 + New client secret 按钮,你可以在这里找到 Certificates & secrets -> Client secretsApp registrations,并将其复制。注意保存两个秘密的值,因为它们只会显示一次。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.