如何使用 Az Cli 登录 azure PIM?根据 MS 文档 [如何使用 az cli] ( https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt )
用于登录的 cmd 是 login az
,如果是特权身份,它将带您进入门户
正在启用管理,我不确定如何访问相同的内容,请输入任何内容?
错误详细信息:HTTPSConnectionPool(host='login.microsoftonline.com', port=443): 网址超出最大重试次数:/common/oauth2/token(由 SSLError(SSLError("bad handshake: Error") 引起) ([('SSL 例程', 'tls_process_server_certificate', '证书验证失败')])")))
最佳答案
截至目前,按照此 Microsoft Document Azure CLI 没有对特权身份管理的 native 支持。您可以使用Graph Rest API
The Privileged Identity Management (PIM) API for Azure AD roles is deprecated and stopped returning data on May 31, 2021. Use the role management API and see the migration guidance below. The Privileged Identity Management (PIM) API for Azure resources will be deprecated soon. Use the new Azure REST PIM API for Azure resources. To migrate, see the migration guidance below.
您可以在此 link 提出功能请求并分享您的建议.
关于azure - 如何使用 cli 访问 azure 门户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71594279/