在Jenkins上配置Azure凭据 [英] Configure Azure credentials on Jenkins
问题描述
我已经在本地计算机上安装了Jenkins服务器.
I have installed the Jenkins server on my local machine.
在jenkins服务器上安装了Azure插件后,我从凭据->上在jenkins服务器上添加了Azure的凭据.系统->全局凭据.
After I installed the Azure plugin on jenkins server, I added the credentials of Azure on jenkins server from Credentials -> System -> Global Credentials.
从在Azure门户上创建的Web应用程序中获取 Subscription ID .
Took the Subscription ID from the webapp created on the Azure portal.
然后转到Azure Active Directory->应用注册->通过提供新的名称和URL添加并注册该应用.
Then gone to Azure Active Directory -> App registration -> Add, and registered the app by giving new Name and URL.
从新创建的应用程序的应用程序ID"中获取客户ID .
Took the Client ID from the newly created application's "Application ID".
然后进入密钥"部分,并创建一个新密钥以获取客户端密钥.
And then gone in Keys section and created a new key to get the Client Secret.
之后,租户ID 从属性"中获得->目录ID. (将其放在OAuth令牌"https://login.windows.net/<TokenID>"中).
After that Tenant ID got from Properties -> Directory ID. (To put this in OAuth token "https://login.windows.net/<TokenID>").
现在,在输入所有这些详细信息之后,当我单击验证服务主体"时,出现错误:-
Now after entering all these details, when I click on "Verify Service Principal", I am getting the error:-
提供的凭据无效."
请提出解决方案.
推荐答案
有人考虑过吗?我也有经验.
Has anyone given this consideration? I have experienced as well.
这篇关于在Jenkins上配置Azure凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!