Skip to content
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 CLI version 2.65.0 has deprecated modules #30147

Open
h44mkk opened this issue Oct 21, 2024 · 7 comments
Open

Azure CLI version 2.65.0 has deprecated modules #30147

h44mkk opened this issue Oct 21, 2024 · 7 comments
Assignees
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Similar-Issue staticwebapp az staticwebapp

Comments

@h44mkk
Copy link

h44mkk commented Oct 21, 2024

Describe the bug

Hi! After upgrading homebrew packages on my macOS, the Azure-CLI version got updated as well. The new version shows always following errors:
/usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, /usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES,

My work colleagues have the same issue as well.
Can somebody fix that please?

Related command

All commands are affected! Here is an example: az staticwebapp hostname delete --name my-static-web-app --hostname example.com --resource-group MY-RESOURCE-GROUP

Errors

/usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"cipher": algorithms.TripleDES,
/usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"class": algorithms.TripleDES,

Issue script & Debug output

/usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"cipher": algorithms.TripleDES,
/usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"class": algorithms.TripleDES,

Expected behavior

Should work without logging erros!

Environment Summary

azure-cli 2.65.0

core 2.65.0
telemetry 1.1.0

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location '/usr/local/Cellar/azure-cli/2.65.0_1/libexec/bin/python'
Extensions directory '/Users/h44mkk/.azure/cliextensions'

Python (Darwin) 3.12.7 (main, Oct 1 2024, 02:05:46) [Clang 15.0.0 (clang-1500.3.9.4)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

Nothing to add.

@h44mkk h44mkk added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Oct 21, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot labels Oct 21, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 21, 2024

Thank you for opening this issue, we will look into it.

Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.

@h44mkk
Copy link
Author

h44mkk commented Oct 21, 2024

Thank you for the suggestion. However, the proposed solution involves downgrading to version 2.64.0, which isn't ideal for our needs. We're looking for a proper fix rather than reverting to an older CLI version.

@jaromirmikulik
Copy link

From my perspective, it could be caused by: #30148

@yonzhan yonzhan added the Service Attention This issue is responsible by Azure service team. label Oct 21, 2024
@h44mkk
Copy link
Author

h44mkk commented Oct 21, 2024

I tried the suggested solution to install the setup tools, but I still have the same issue:

Image
Still getting here the same warnings:
Image

/usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/usr/local/Cellar/azure-cli/2.65.0_1/libexec/lib/python3.12/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,

@jaromirmikulik
Copy link

try to update azure-cli via homebrew:
brew update && brew upgrade

it should fix also this kind of issue.

@dvasdekis
Copy link

try to update azure-cli via homebrew: brew update && brew upgrade

it should fix also this kind of issue.

I still get this issue even though I have the latest Azure CLI version:

➜  az version
{
  "azure-cli": "2.65.0",
  "azure-cli-core": "2.65.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "resource-graph": "2.1.0"
  }
}
➜   az functionapp show --subscription "..." --resource-group "..." --name "my-funcapp-name"
/opt/az/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/opt/az/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
Subscription '...' not recognized.
Not Found({"error":{"code":"MissingSubscription","message":"The request did not have a subscription or a valid tenant level resource provider."}})

You can replace the ... with your real IDs for a real example but the above still illustrates the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Similar-Issue staticwebapp az staticwebapp
Projects
None yet
Development

No branches or pull requests

8 participants