我们如何在导入 Azure Application Insights 的标签时忽略带有 hidden-link 的标签
How can we ignore the tags with the hidden-link while we import tags of an Azure Application Insights
在导入 azure 资源的标签(键值对)时是否可以避免隐藏 tags.How 我们可以实现吗?
我使用下面的代码来获取标签。
$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
上面的link显示了hidden-link用于添加隐藏标签的标签。
我可以把隐藏的标签从所有标签列表中分离出来吗
foreach($keys in $arr){
if($tags[$keys] -ne "Resource") {
$tag = $tag +$keys +":"+$tags[$keys]+"`n" }
在导入 azure 资源的标签(键值对)时是否可以避免隐藏 tags.How 我们可以实现吗? 我使用下面的代码来获取标签。
$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
上面的link显示了hidden-link用于添加隐藏标签的标签。
我可以把隐藏的标签从所有标签列表中分离出来吗
foreach($keys in $arr){
if($tags[$keys] -ne "Resource") {
$tag = $tag +$keys +":"+$tags[$keys]+"`n" }