在导入azure资源的标签(键,值对)时是否可以避免隐藏标签。我们如何实现这一点? 我使用下面的代码来获取标签。
$tag=""
foreach($keys in $arr){
$tag = $tag +$keys +":"+$tags[$keys]+"`n"
}
$report | Add-Member -MemberType NoteProperty -name ResourceTags -Value $tag
$report | Add-Member -MemberType NoteProperty -name ResourceSubscription -Value $subscription_name
$report | export-csv $fileName -Append -NoTypeInformation
What does "hidden-link:" mean in Azure Resource Manager Tags
上面的链接显示了用于添加隐藏标签的隐藏链接。
我可以获取从所有标签列表中分离出来的隐藏标签吗?
最佳答案
foreach($keys in $arr){
if($tags[$keys] -ne "Resource") {
$tag = $tag +$keys +":"+$tags[$keys]+"`n" }
关于azure - 当我们导入Azure Application Insights的标签时,如何忽略带有隐藏链接的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57519244/