Azure / Azure/azure-cli

az provider show -n <namespace> doesn't work for most RPs

Open
#16,141 2 comments 0 reactions 1 assignee Assigned to @jiasli View on GitHub
Custom Providers feature-request
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
az provider show -n should pull info from the providers api for the specified provider. It looks as though we use an arbitrary apiVersion which isn't likely to match the supported apiVersion for the specified provider. So this cmd will almost never work

**Command Name**
``az provider show

**Errors:**
Error returned will indicate the provider doesn't support the apiVersion sent in the request. The use has no option to change the apiVersion

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

az provider show -n Microsoft.Storage/storageAccounts (or any resource that doesn't have a 2020-06-01 apiVersion

- _Put any pre-requisite steps here..._
- ``

## Expected Behavior
return the results of the GET

## Environment Summary
```
Windows-10-10.0.18362-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.14.0 *

Extensions:
storage-preview 0.2.5

```
## Additional Context

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.