Open r300mrg opened 3 weeks ago
Thank you for opening this issue, we will look into it.
Hi @r300mrg , thanks for querying.
Hi @r300mrg , thanks for querying.
- For required value gap, as cli processes users' inputs and displays service api's returns, and does not have the dependency relationship among different parameters, therefore it cannot process the validation for trivial arg inputs and might miss some required args under specific user inputs.
- For kind=ping default, cli will update this module in recent release for fixing it.
Hi @AllyW, thank you for your reply. For the required value gaps, this really needs better documentation on https://learn.microsoft.com/en-us/cli/azure/monitor/app-insights/web-test?view=azure-cli-latest#az-monitor-app-insights-web-test-create, as it is very misleading and confusign.
Thanks
Describe the bug
The required parameters for the command
az monitor app-insights web-test create
do not appear to be configured and documented correctly.The required parameters documented at https://learn.microsoft.com/en-us/cli/azure/monitor/app-insights/web-test?view=azure-cli-latest#az-monitor-app-insights-web-test-create, are:
--name --web-test-name -n
--resource-group -g
However, via trial and error more required parameters seem to be required:
--tags "hidden-link:/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/microsoft.insights/components/$APP_INSIGHTS_RESOURCE"="Resource"
--defined-web-test-name
--locations
--web-test
or--web-test-kind
(and dependent associated commands)Also the
kind
value defaults toping
, which is due to be retired and is set even when the--web-test-kind
parameter is set tostandard
. If an Availability test is created via the Azure Portal, thekind
value isnull
which can't be overwritten by Azure CLI commands.Ping and Multistep availability is due to be retired and replaced by standard tests.
Related command
Errors
See above related commands and the output.
Issue script & Debug output
Should be easy to replicate.
(note
"kind": "ping"
present in debug logs but not set via the command or required for astandard
test)Expected behavior
kind
value either allowsnull
orstandard
or is not required in favour of--web-test-kind
Documentation corrected to confirm the Required parameters.
Environment Summary
azure-cli 2.61.0
core 2.61.0 telemetry 1.1.0
Extensions: account 0.2.5 application-insights 1.2.1 functionapp 0.1.1
Dependencies: msal 1.28.0 azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Python (Linux) 3.11.8 (main, May 16 2024, 03:47:28) [GCC 11.4.0]
Additional context
No response