question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Provider] Improve output of `provider show` command

See original GitHub issue

Registering provider gives this helpful hint:

(env) D:\git\azure-cli [usages ≡]> az provider register -n Microsoft.Sql
Registering is still on-going. You can monitor using 'az provider show -n Microsoft.Sql'

However the output of az provider show -n Microsoft.Sql is huge and overwhelming. az provider show -n Microsoft.Sql --query registrationState would be better.


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: nightly

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here:

azure-cli (2.0.3+dev)

acr (2.0.1+dev)
acs (2.0.3+dev)
appservice (0.1.3+dev)
batch (2.0.1+dev)
cloud (2.0.1+dev)
component (2.0.1+dev)
configure (2.0.3+dev)
container (0.1.3+dev)
core (2.0.3+dev)
dla (0.0.2+dev)
dls (0.0.2+dev)
documentdb (0.1.3+dev)
feedback (2.0.1+dev)
find (0.0.2+dev)
iot (0.1.3+dev)
keyvault (2.0.1+dev)
lab (0.0.2+dev)
monitor (0.0.2+dev)
network (2.0.3+dev)
nspkg (2.0.0+dev)
profile (2.0.3+dev)
redis (0.2.0+dev)
resource (2.0.3+dev)
role (2.0.2+dev)
sql (2.0.1+dev)
storage (2.0.3+dev)
taskhelp (0.1.1b4+dev)
testsdk (0.1.0+dev)
utility-automation (0.1.1)
vm (2.0.3+dev)

Python (Windows) 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)]

OS Version: What OS and version are you using?
Answer here: Windows 10

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: PowerShell

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lmazuelcommented, Aug 25, 2017

It’s even part of msrestazure since 0.4.9, and less than less needed 😃

0reactions
yugangw-msftcommented, Nov 16, 2018
 > Docs at https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound has the command az provider show -n Microsoft.Web --query "resourceTypes[?resourceType=='sites'].locations" which returns an empty list for Microsoft.Sql. So this doc page also needs to be clarified somehow.

Using az provider show -n Microsoft.SQL --query "resourceTypes[?resourceType=='servers/databases'].locations should work, the document uses appservice as the example, so you have to tweak across

Also if I have already registered then the help text is misleading. It should just succeed or maybe write text like “already registered”.

This was fixed last month 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command: providers | Terraform - HashiCorp Developer
The terraform providers command prints information about the providers required in the current configuration.
Read more >
Basic Router Commands and Tasks - Cisco
You will use the show interfaces command in the practice labs. This command displays statistics for the network interfaces. Sample output from the...
Read more >
21 Terraform CLI Commands & Examples - Spacelift
Get provider information · Manage your workspaces · View your outputs · Release a lock on your workspace · Log in and out...
Read more >
az provider - Microsoft Learn
In this article. Commands; az provider list; az provider register; az provider show; az provider unregister ... The properties to include in the...
Read more >
describe-identity-provider-config - AWS Documentation
If you would like to suggest an improvement or fix for the AWS CLI, check out our ... the command inputs and returns...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found