Azure可用性测试-需要指向现有AI组件的单个“隐藏链接”标记,未找到任何标记

vmdwslir  于 2023-01-27  发布在  其他
关注(0)|答案(1)|浏览(62)

我正在尝试通过azure cli为azure中托管的应用程序服务创建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 get“(BadRequest)需要指向现有AI组件的单个'hidden-link'标记。未找到。”我不确定如何使用应用洞察力的资源ID格式化隐藏链接。没有找到有关此问题的很多文档,如有帮助,将不胜感激

lqfhib0f

lqfhib0f1#

稍后找到隐藏链接属性的格式,它应该位于标记下

--tags hidden-link:/subscriptions/{subscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.insights/components/{appInsightName}=Resource

相关问题