首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Terraform -进口可用性测试

Terraform -进口可用性测试
EN

Stack Overflow用户
提问于 2022-06-01 06:06:38
回答 1查看 173关注 0票数 -1

我想从azure门户导入可用性测试。

根据文档https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_metric_alert,它说要使用terraform import azurerm_monitor_metric_alert.main /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.Insights/metricAlerts/example-metricalert

我使用的命令是terraform import azurerm_monitor_metric_alert.this /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Insights/metricAlerts/example metric alert test-appinsightsname

我的问题是我的可用性名称有点不同:示例度量警报测试应用程序洞察力

这是我得到的错误,命令需要两个参数。

EN

回答 1

Stack Overflow用户

发布于 2022-06-01 06:06:38

经过几次尝试,我发现解决方案是在可用性名称有多个名称时添加""

解决方案:

代码语言:javascript
复制
terraform import azurerm_monitor_metric_alert.this "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Insights/metricAlerts/example metric alert test-appinsightsname"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72457133

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档