hackathon-cli-recommendation / cli-recommendation

4 stars 5 forks source link

Mostly unhelpful due to no recommendations #16

Open marcobaldo opened 3 years ago

marcobaldo commented 3 years ago

[MarcFeedback] I understand the tool will recommend solutions based on what other users frequently do. However, trivial samples like the first two are similar to the first sample in the guidance doc but in my case did not recommend anything.

web app no recommendation storage create

For this next one, the error I got was pretty unhelpful - invalid status code 'Conflict'. az next had no recommendation, but later on I found out through the internet that it's due to the appservice plan not being empty.

Would be helpful if az next recommended steps if the issue is pretty common on the internet, not just based on the usage of the CLI. appservice plan delete unhelpful

The last one seems to be a separate CLI issue, and az next didn't know what to do. I've yet to figure out what the problem is so I can file a separate report. not helpful

zhoxing-ms commented 3 years ago

Would be helpful if az next recommended steps if the issue is pretty common on the internet, not just based on the usage of the CLI.

@marcobaldo Hi, this is a very good suggestion! ! Since we don't collect enough information about similar errors, so error solution recommendation is not a mature feature at present, there are often no recommendations. We have a data scientist team that uses crawlers to get those information and do things like that. (TRY THIS is the recommendation they provide). We will consider integrating these two capabilities in the future.

By the way, may I ask have you experienced other two types of recommendation? (command recommendation and E2E scenario recommendation) If so, do you have any experience and suggestions on them?

marcobaldo commented 3 years ago

Hi @zhoxing-ms! I have not actually experienced either. I was looking for an E2E scenario when trying to create a webapp, actually, but didn't get any recommendations.

Context is, I ran az webapp create, but after the first try, realized I also needed a corresponding appservice plan. In the portal, you can do the creation in a single step. So when I provided az webapp create --resource-group xyz --name abc, I was missing the --plan option. Upon running az next, I was expecting it to recommend me something similar to the guide due to it just a missing parameter, but I did not get a recommendation. Additionally I was hoping it either recommend me:

  1. Run az appservice plan list to get my existing plans; or
  2. Run az appservice plan create .... to create a new plan; and then
  3. Run `az webapp create [my original params] --plan [result from #1 or #2]

This is my most common usage scenario since I tend to deploy a lot of web apps (with new plans) and was hoping to have easy recommendations for next steps!