Closed bmukes closed 5 years ago
Thanks for the detailed report @bmukes. I will take a look.
I was not able to repro this. Does the resource group it complains about in fact exist?
Yes the resource group exists.
But I think I have it figured out. I tested using a different Directory + subscription ‘InsTech FSPOC PROD’ and EVERYTHING WORKS But not under Directory + subscription ‘InsTech POC-2 Test’ I AM GETTING THE ERROR.
I was testing all last week using Directory + subscription ‘InsTech POC-2 Test’ and everything worked, but obviously something has changed within the subscription since last week. I will ask the owner of subscription to contact Microsoft Support because the command az monitor autoscale create does work.
Thanks for your help in this matter
Brian Mukes | Architect | INSURANCE TECHNOLOGIEShttp://www.insurancetechnologies.com/ t: +1 719.442.6400 | f: +719.442.0600
From: Travis Prescott notifications@github.com Sent: Wednesday, April 24, 2019 4:57 PM To: Azure/azure-cli azure-cli@noreply.github.com Cc: Mukes, Brian BMukes@InsuranceTechnologies.com; Mention mention@noreply.github.com Subject: Re: [Azure/azure-cli] az monitor autoscale create no longer working (#9191)
I was not able to repro this. Does the resource group it complains about in fact exist?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli/issues/9191#issuecomment-486457851, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAU2RRMGUBJK5ZMVC73MAXTPSDQTLANCNFSM4HIGX7SA.
Confidential and proprietary information may be contained in this communication, including attachments. If you are not the intended recipient, you must not use, copy, disclose, distribute or retain this communication or any part of it. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately by return e-mail and permanently delete this message and any attachments.
Describe the bug When attempting to run az monitor autoscale create I always get the same error message error retrieving default location: Resource group '{resource group name}' could not be found.
To Reproduce Create a S2 (2) instance service plan for Windows.
Attempt to create an AutoScale as shown below I am using the ID of the service plan for the --resource parameter.
az monitor autoscale create --min-count 2 --max-count 4 --count 2 --resource "/subscriptions/{your subscription id}/resourceGroups/fse-bdy-prod-eu-rg/providers/Microsoft.Web/serverfarms/fse-bdy-prod-eu-sp" --tags OrganizationIdentifier="bdy" ProductName="fse" ResourceType="App Service AutoScale"
Expected behavior This worked without issue last week under cli version 2.0.61 and my scripts have not changed. I have even tried the command manually as indicated above. I even updated the CLI from 2.0.61 to 2.0.63 and the results are the same.
Environment summary I have telemetry turned off within the config file because creating an application gateway was never returning. I also tried removing the collect_telemetry entry same result. Here is my CLI config file [cloud] name = AzureCloud
[core] first_run = yes collect_telemetry = false
Powershell:
AZ Version az --version
Python (Windows) 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]
Additional context No Additional context