尝试编写脚本以在Azure上创建的VM上自动部署Azure.昨天一切都很花花公子.我进行了设置,并且服务正在部署到各自的订阅中.
我的证书区域还有许多Azure管理证书.我已经把它们全部清理干净了,因为除了一个人以外都很老了.然后我重新导入了最新的发布设置文件,希望通过从头开始,一切都会很高兴.
然后我今天登录,运行了我的一个部署,它说:
The server failed to authenticate the request.
Verify that the certificate is valid and is associated with this subscription.
Run Code Online (Sandbox Code Playgroud)
没问题,只需使用方便的dandy add-azureaccount,它会重新登录,重新运行部署,然后再说:
Set-AzureService : ForbiddenError: The server failed to authenticate the
request. Verify that the certificate is valid and is associated with this
subscription.
Run Code Online (Sandbox Code Playgroud)
有没有人知道如何获得服务器的身份验证?
我在Azure上创建并在VM上安装Teamcity的所有这些自动化.当我尝试直接在VM Powershell上运行脚本时它工作正常但是当我尝试运行Teamcity配置时发生错误,它在PowerShell构建步骤中失败.
It though returns the subscriptions that are there on VM by the command Get-AzureSubscription
[11:31:07][Step 3/3] SubscriptionId :*******
[11:31:07][Step 3/3] SubscriptionName :****
[11:31:07][Step 3/3] Environment : AzureCloud
[11:31:07][Step 3/3] SupportedModes : …