PRODConfirmInvitationCode:"Could not fetch access token for Azure. Status code: 401, status message: Unauthorized"

PRODConfirmInvitationCode: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized"

从 Azure DevOps 部署到 azure 订阅时出现错误:

Download secrets:

PRODConfirmInvitationCode: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODSendInvitationCode: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODValidateInvitationCode: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODLehisoGraphEnabledClientId: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODLehisoGraphEnabledClientSecret: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODOticonGraphEnabledClientId: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODOticonGraphEnabledClientSecret: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODConfirmPasswordReset: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODSendPasswordReset: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized" PRODValidatePasswordReset: "Could not fetch access token for Azure. Status code: 401, status message: Unauthorized"

错误来源是服务主体的秘密已过期,因此解决方案是更新服务主体密钥,可以手动或自动完成。