我正在尝试为通过azure cli托管的应用程序服务创建url ping测试。
az monitor app-insights web-test create
--location "Australia East"
--tags 'hidden-link:/subscriptions/{subid}/resourceGroups/{rg}/providers/microsoft.insights/components/{appinsightname}'
--description "Ping web test alert for mytestwebapp"
--enabled true --frequency 900
--web-test-kind "standard"
--locations Id="emea-au-syd-edge"
--defined-web-test-name "my-webtest-my-component"
--http-verb "GET"
--request-url "https://myurl.net/"
--retry-enabled true
--synthetic-monitor-id "my-webtest-my-component"
--timeout 120
--ssl-lifetime-check 100
--ssl-check true
--resource-group "{rgname}"
--name "my-webtest-my-component" I am tag "(BadRequest)一个指向现有AI组件的‘隐藏链接’标签是必需的。没有发现。“我不知道如何用app的资源id格式化隐藏链接。有关这方面的文件不多,如能提供任何帮助,将不胜感激。
发布于 2022-10-26 11:17:47
稍后找到隐藏链接属性的格式。
--tags hidden-link:/subscriptions/{subscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.insights/components/{appInsightName}=Resourcehttps://stackoverflow.com/questions/74206100
复制相似问题