我正在尝试使用Azure DevOps CI/CD为ADF部署ARM模板
部署成功,但在尝试测试链接的服务时,我无法成功连接。
链接的服务将在相同的订阅下连接到ADLS位置,身份验证方法是使用服务主体并使用密钥库密码名称来获得连接。
密钥库也在相同的订阅和资源组下。
在尝试将LS连接到ADLS位置时,我遇到以下错误。
Failed to get access token by using service principal. Error: invalid_client, Error Message: AADSTS7000215: Invalid client secret is provided.
Trace ID: 67d0e882-****-****-****-***6a0001
Correlation ID: 39051de7-****-****-****-****6402db04
Timestamp: 2020-11-** **:**:**Z Response status code does not indicate success: 401 (Unauthorized). {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: 67d0e882-****-****-****-***6a0001\r\nCorrelation ID: 39051de7-****-****-****-****6402db04\r\nTimestamp: 2020-11-** **:**:**Z","error_codes":[7000215],"timestamp":"2020-11-** **:**:**Z","trace_id":"67d0e882-****-****-****-***6a0001","correlation_id":"39051de7-****-****-****-****6402db04","error_uri":"https://login.microsoftonline.com/error?code=7000215"}: Unknown error .
AADSTS7000215: Invalid client secret is provided.
连接集群的链接服务工作正常,连接秘密存储在同一个密钥库中。
我搞混了,同一个密钥库中的一些秘密(用于集群连接)正在工作,少数(用于adls连接)不起作用。
我检查了Azure active directory中相同主体id下的应用程序,密钥有效期到2022年。
关于错误的根本原因以及如何解决问题,您有什么想法吗?
发布于 2020-11-10 10:11:09
我以前遇到过类似的问题,你需要确保客户端机密属于你正在使用的应用程序,或者你也可以尝试创建一个新的客户端机密,它应该对你有效。
https://stackoverflow.com/questions/64698909
复制相似问题