Replies: 14 comments 5 replies
-
I noticed my Azure CLI version was updated yesterday and rolling it back to version 2.33.1 resolves the above error. |
Beta Was this translation helpful? Give feedback.
-
Isolated the issue to the following code in my automation project:
So it looks like the azure_native.authorization.get_client_config() API call doesn't know how to deal with the lovely new informational message that Microsoft introduced with Azure CLI version -> 2.34.1 and i assume this API would eventually need to point to the new Microsoft Graph API? |
Beta Was this translation helpful? Give feedback.
-
Have the same issue. |
Beta Was this translation helpful? Give feedback.
-
same here, rolling back the |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting! We'll take a look. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue with the AAD Graph deprecation warning breaking the bootstrap script I wrote for my terraform projects. I was using the AZ cli from within python and I was catching exceptions for output returned from the CLI on STDERR, the AAD Graph warning is printing out on STDERR.
The fix for me was to add '--only-show-errors' to any of the AZ cli AAD graph commands I was invoking to suppress the warning. I assume this needs to be added wherever the provider is calling the az cli command, that is if pulumi is actually calling the cli. Edit: looks like you can work around this issue if you really want to with:
Not sure what repercussions turning az cli warnings off globally might have. :) |
Beta Was this translation helpful? Give feedback.
-
Looks like the azure-native provider currently uses an authentication library that falls back to the AZ CLI to retrieve tokens etc. As mentioned earlier by users, starting in az CLI version The current workaround is to either:
Apologies for the inconvenience here. |
Beta Was this translation helpful? Give feedback.
-
This is going to break a lot of existing pulumi stacks. Preventing upgrading the Azure CLI is OK as a temporary workaround, but not sustainable for very long. If the deprecation message is only a warning, can it just be logged to stderr (or elsewhere) and not throw an error? |
Beta Was this translation helpful? Give feedback.
-
@viveklak any timeline for when this will be fixed? Great that a workaround exists, but its not sustainable much longer. |
Beta Was this translation helpful? Give feedback.
-
Is there an issue we can track for the migration, please? |
Beta Was this translation helpful? Give feedback.
-
Hi all, thanks for you patience here with the workarounds. We're currently hard at work moving towards a new major version of the provider to address some pressing scaling limitations we're nearing; this issue is currently sitting at the top of our priority list to resolve and will be picked up in the near future. |
Beta Was this translation helpful? Give feedback.
-
Is there a work around for CI? |
Beta Was this translation helpful? Give feedback.
-
Has this issue been resolved? We are still on az CLI 2.33.1, just wondering if we can upgrade. |
Beta Was this translation helpful? Give feedback.
-
I'm going to close this discussion as this should have been resolved as part of our MSAL and OIDC work in March: |
Beta Was this translation helpful? Give feedback.
-
Hello!
Issue details
When running pulumi up i receive the following error:
Exception: invoke of azure-native:authorization:getClientConfig failed: invocation of azure-native:authorization:getClientConfig returned an error: getting authenticated object ID: Error parsing json result from the Azure CLI: Error retrieving running Azure CLI: WARNING: The underlying Active Directory Graph API will be replaced by Microsoft Graph API in a future version of Azure CLI. Please carefully review all breaking changes introduced during this migration: https://docs.microsoft.com/cli/azure/microsoft-graph-migration
Steps to reproduce
Expected: A working deployment of a existing "working" automation project.
Actual: Receive error above.
Beta Was this translation helpful? Give feedback.
All reactions