Azure / Azure/azure-cli

Error loading command module 'batch': cannot import name 'ComputeNodeExtensionOperations' from 'azure.batch.operations'

Open
#19,254 5 comments 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-identity-squad customer-reported feature-request KeyVault
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az keyvault secret set`

**Errors:**
```
Error loading command module 'batch': cannot import name 'ComputeNodeExtensionOperations' from 'azure.batch.operations'
(C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\batch\operations\__init__.pyc)
Error loading command module 'keyvault': No module named 'azure.cli.command_modules.keyvault._format'
'keyvault' is misspelled or not recognized by the system.

```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- `az keyvault secret set --name {} --vault-name {} --value {}`

## Expected Behavior
The secret is created or updated.

## Environment Summary
```
Windows-2012ServerR2-6.3.9600-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.27.1

Extensions:
application-insights 0.1.14
cosmosdb-preview 0.9.0
front-door 1.0.16
storage-preview 0.7.4

```
## Additional Context
This command was working fine in the exact same environment with Azure CLI, when the following versions were in place on 6-Aug-2021:

core 2.26.1 *
telemetry 1.0.6

Extensions:
application-insights 0.1.13
cosmosdb-preview 0.8.1
front-door 1.0.16
storage-preview 0.7.4

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\UserName\.azure\cliextensions'

Python (Windows) 3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021, 13:22:56) [MSC v.1928 32 bit (Intel)]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.