Backgroup:
While working on Maintenance RP CLI development. Test was recorded using following cmmand with latest azure-cli and azure-cli-extension repo.
While recording test for maintenance rp, thre was no get request for resource group for each following command
Test should pass and CLI should not check resource group for create command
Environment Summary
(clienv) kachavan@kachavan-Virtual-Machine:~/clidev/azure-cli-extensions$ az --version
/home/kachavan/pyenv/clienv/bin/az:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.htmlimport('pkg_resources').require('azure-cli==2.51.0')
azure-cli 2.51.0
Describe the bug
Backgroup: While working on Maintenance RP CLI development. Test was recorded using following cmmand with latest azure-cli and azure-cli-extension repo.
While recording test for maintenance rp, thre was no get request for resource group for each following command
How to reproduce
Related command
az vm create az vm host create az maintenance configuration create az maintenance assignment create az maintenance applyupdate create
Errors
azdev test maintenance failed.
Issue script & Debug output
Expected behavior
https://github.com/Azure/azure-cli-extensions/pull/6589/checks?check_run_id=15566022402
Test should pass and CLI should not check resource group for create command
Environment Summary
(clienv) kachavan@kachavan-Virtual-Machine:~/clidev/azure-cli-extensions$ az --version /home/kachavan/pyenv/clienv/bin/az:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import('pkg_resources').require('azure-cli==2.51.0') azure-cli 2.51.0
core 2.51.0 telemetry 1.1.0
Extensions: maintenance 1.4.0 (dev) /media/kachavan/extdrive/clidev/azure-cli-extensions/src/maintenance
Dependencies: msal 1.24.0b1 azure-mgmt-resource 23.1.0b2
Python location '/home/kachavan/pyenv/clienv/bin/python' Extensions directory '/home/kachavan/.azure/cliextensions' Development extension sources: /media/kachavan/extdrive/clidev/azure-cli-extensions
Python (Linux) 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response