Open piotrgradzinski opened 3 years ago
Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).
@rootsmusic And how's that solves the issue?
@piotrgradzinski Please move this issue to https://github.com/Azure/azure-rest-api-specs
I have just hit this issue and the latest documentation has --tags as optional and no mention of hidden tags in the parameters section (but does under the example???), yet Azure CLI v2.6.1 requires hidden tags when running az monitor app-insights web-test create
causes error:
azure.core.exceptions.HttpResponseError: (BadRequest) A single 'hidden-link' tag pointing to an existing AI component is required. Found none.
Code: BadRequest
Message: A single 'hidden-link' tag pointing to an existing AI component is required. Found none.
Inner error: {
"trace": [
"System.ArgumentException"
]
}
cli.azure.cli.core.azclierror: (BadRequest) A single 'hidden-link' tag pointing to an existing AI component is required. Found none.
Code: BadRequest
Message: A single 'hidden-link' tag pointing to an existing AI component is required. Found none.
Inner error: {
"trace": [
"System.ArgumentException"
]
}
az_command_data_logger: (BadRequest) A single 'hidden-link' tag pointing to an existing AI component is required. Found none.
Code: BadRequest
Message: A single 'hidden-link' tag pointing to an existing AI component is required. Found none.
Inner error: {
"trace": [
"System.ArgumentException"
]
}
Documentation: https://learn.microsoft.com/en-us/cli/azure/monitor/app-insights/web-test?view=azure-cli-latest#az-monitor-app-insights-web-test-create
Describe the bug Using the steps described here https://docs.microsoft.com/en-us/rest/api/application-insights/webtests/createorupdate I am trying to create new Web Test. I'm receiving Bad Request response due to the missing 'hidden-link' tag in request body. This requirement is not pointed in the documentation.
To Reproduce Trying to send the following request:
and receiving the following response:
Adding
tags
property solves the issue:Expected behavior Update the documentation for
webTestCreate
andwebTestUpdate
sections.