我们有一个相当简单的部署脚本来添加延迟:
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) 我正在尝试使用 AZ CLI 运行管道。我有一个简单的管道:
\nparameters:\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\nRun Code Online (Sandbox Code Playgroud)\n我尝试使用以下命令运行它:
\naz pipelines run --organization <my org> --project <my project> --name <pipeline> --branch <my branch> --debug --variables initials=maim\nRun Code Online (Sandbox Code Playgroud)\n然后我最终得到一个错误:
\n\n\nValidationResults":[{\xe2\x80\x9cresult\xe2\x80\x9d:\xe2\x80\x9cerror\xe2\x80\x9d,\xe2\x80\x9cmessage\xe2\x80\x9d:"参数的值必须提供
\n
这有点奇怪,因为您可以从调试中看出正在设置参数:
\n\n