小编Mat*_*mer的帖子

Azure 部署脚本失败并显示 AuthenticationFailed

我们有一个相当简单的部署脚本来添加延迟:

resource  awaitscript  'Microsoft.Resources/deploymentScripts@2020-10-01' = {
  name: 'await-${appName}'
  location: location
  kind: 'AzurePowerShell'
  properties: {
    azPowerShellVersion: '9.7'
    scriptContent: 'Start-Sleep -Seconds 150'
    timeout: 'PT1H'
    retentionInterval: 'PT1H'
  }
  dependsOn: [appServicePlan]
}
Run Code Online (Sandbox Code Playgroud)

它已经工作了几个月,但最近我们看到了很多 AuthenticationFailed 错误:

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:3fefb479-b01a-00a1-40c4-f66f2e000000
Time:2023-10-04T13:12:59.8885812Z
Status: 403 (Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.)
ErrorCode: AuthenticationFailed

Additional Information:
AuthenticationErrorDetail: The MAC …
Run Code Online (Sandbox Code Playgroud)

azure azure-bicep

5
推荐指数
1
解决办法
400
查看次数

Az CLI:无法使用运行时参数运行管道

我正在尝试使用 AZ CLI 运行管道。我有一个简单的管道:

\n
parameters:\n- name: initials\n  displayName: Initials\n  type: string\n\ntrigger:\n- master\n\npool:\n  vmImage: ubuntu-latest\n\nsteps:\n- script: echo ${{ parameters.initials }}\n  displayName: Test\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试使用以下命令运行它:

\n
az pipelines run --organization <my org> --project <my project> --name <pipeline> --branch <my branch> --debug --variables initials=maim\n
Run Code Online (Sandbox Code Playgroud)\n

然后我最终得到一个错误:

\n
\n

ValidationResults":[{\xe2\x80\x9cresult\xe2\x80\x9d:\xe2\x80\x9cerror\xe2\x80\x9d,\xe2\x80\x9cmessage\xe2\x80\x9d:"参数的值必须提供

\n
\n

这有点奇怪,因为您可以从调试中看出正在设置参数:

\n

调试输出

\n

azure-cli azure-devops azure-pipelines

4
推荐指数
1
解决办法
1634
查看次数