-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azure.identity can't be used for mgmt clients #9310
Comments
Hi @bmc-msft |
Hi @bmc-msft |
Hi @bmc-msft we improved that gist with an actual repo with more details: |
I appreciate the continued feedback as you make progress on this. |
Hello @lmazuel I'm linking this here https://stackoverflow.com/questions/61944440/accessing-azure-storage-via-certificate-based-service-principal-credentials-azu |
Any updates on this? |
I think this works now with azure-mgmt-resource v15 https://pypi.org/project/azure-mgmt-resource/ |
Does anyone know if Python azure.mgmt.datafactory's When I try...:
I'm getting...: I love using |
Disregard. This was answered elsewhere. I AM curious if there is a timeline for this library to begin using |
As someone who has stuggled with adopting Azure most of my career as a result of stuff like this I am majorly disappointed in such a breaking change. But for what its worth and in the spirit of open source here is my insights. This is still prevalent in AzureCliCredential as well. The below modules are all effected by this. Additionally the base module aio is missing aiohttp python package. These were libs were installed from latest as of today.
|
it does not. latest libs are still broken. |
Is there any progress on this and/or can the wrapper that @lmazuel discussed get released as a supported package? I continue to stumble across packages that require older identity models and do not support azure.identity. The most recent is There are multiple issues opened that are related to this underlying issue. It would be great to understand how this should be handled, as cut & paste of a work-around from a Microsoft employee's personal github project isn't a great path forwards. Refs: #15330, #14635, #14499, #13891, #11663, #10274, #9756. |
@castaway2000 This comes with a set of breaking changes indeed, and that felt to us as necessary evil to reach the level of consistency we were aiming. All this with the will and promise that it should now last for a long time. I do confirm azure-mgmt-resource work with azure-identity starting v15, any problems with it won't fall into the root cause of this issue, please create another issue with this specific problem if you can't make it work. We did decided to not install It's fair to ask for the agenda of migration of mgmt packages to the new system, and I understand the ask, I'm bubbling it to people that knows it (I don't personally handle packages that starts with azure-mgmt-xxxxx) |
Any updates on this? |
@budaesandrei Since the beginning of this issue, there is more and more packages that supports azure-identity. We're still working on a public schedule for the list of the remaining part. If there is a specific package you are looking for, please post the name here. |
@lmazuel, these are packages that I use that I believe do not yet support azure-identity:
|
@lmazuel Thanks for the support. I had upgraded azure-identity but I was running my code on a kernel with a lower version |
Hello! |
Tested with
My bad, I was running the script in an azure automation runbook where I did not load the correct version of the package. After importing version 16.0.0, resource client is working with |
|
Year 2050, Azure still exists (unfortunately for all), the fix is not there yet, but Azure folks look forward to fixing it soon 🤣 |
hi, azure.mgmt.recoveryservices doesnt work with azure-identity. |
sorry . azure.mgmt.recoveryservicesbackup doesnt work with azure-identity but azure.mgmt.recoveryservices seems ok. |
Hi is there another way to workaround? I'm trying with the object ComputeManagementClient from package azure.mgmt.compute, and using ClientSecretCredential object as a parameter but i get this error 'ClientSecretCredential' object has no attribute 'signed_session' Please I would appreciate the help |
@lizzbazan : with These credentials can be generated with the azure cli command
|
@jbouzekri I'm doing that but the problem is with that signed_session error, is not implemented yet i guess and not working for ComputeManagementClient, but it works for subscriptionClient |
@lizzbazan : I have used it with success with these versions of the libraries :
|
Trying to use DnsManagementClient.record_sets.create_or_update results in the same "signed_session" error. The DNS management library works fine when using a regular user's credentials but it won't work with a Service Principal. |
Hello guys, I've occurred same problem for below packages version: AttributeError: 'AzureCliCredential' object has no attribute 'signed_session' The same appears once using DefaultAzureCredential. |
Hi @bmc-msft. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Hi @bmc-msft, since you haven’t asked that we “ |
/unresolve |
Hi mmasiuk, only the original author of the issue can ask that it be unresolved. Please open a new issue with your scenario and details if you would like to discuss this topic with the team. |
This is so poor. Batch just seems abandoned. |
azure.identity.DefaultAzureCredential is an extremely useful helper, unfortunately this does not work for azure-mgmt components. It would be beneficial to have this mechanism unified.
The text was updated successfully, but these errors were encountered: