-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
AzurePowerShellCredential fails to generate token due to deprecation message in Az 12.1.0 #30356
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Thank you for the detailed report @jalkire |
Currently going the check if other languages too are affected by this. And going to come up with the plan. |
3 tasks
3 tasks
EmmaZhu
added a commit
that referenced
this issue
Jul 22, 2024
This was referenced Jul 23, 2024
andykao1213
added a commit
that referenced
this issue
Aug 7, 2024
### Packages impacted by this PR - @azure-rest/maps-search - @azure-rest/maps-route - @azure-rest/maps-render - @azure-rest/maps-geolocation ### Issues associated with this PR #29699 ### Describe the problem that is addressed by this PR 1. Migrate the test to federated authentication 2. In the samples, use AAD auth as default authentication method. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? NA ### Are there test cases added in this PR? _(If not, why?)_ Yes, changes are made in the `Maps<serviceName>.spec.ts`. Note that there are some failed pipelines: 1. LRO test in maps-route-rest: Known issue. Maps team has an exist work item under the internal backlog. 2. `CredentialUnavailableError` in macos environment under maps-geolocation: Know issue. #30356 ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
3 tasks
maorleger
added a commit
that referenced
this issue
Aug 12, 2024
…0720) ### Packages impacted by this PR @azure/identity ### Issues associated with this PR Resolves #30356 ### Describe the problem that is addressed by this PR Adds support for the `-AsSecureString` flag for `AzurePowerShellCredential` in order to support upcoming breaking changes from Az Pwsh modules in a backwards compat way
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Az PowerShell 12.1.0 introduced a deprecation warning about an output change of
Get-AzAccessToken
to securestring. This message causes theGet-AzAccessToken
command in azurePowerShellCredential to fail.To Reproduce
Steps to reproduce the behavior:
AzurePowerShellCredential
to get a token. Minimal repro example:Expected behavior
No error. Token acquired successfully.
Additional context
A workaround is to disable the deprecation warning, but @azure/identity will still need to be updated to expect a SecureString before Az 13.0.0 is released.
The text was updated successfully, but these errors were encountered: