Skip to content

Instantly share code, notes, and snippets.

@renzors
Created March 6, 2018 22:13
Show Gist options
  • Save renzors/55fde4804619aa458c4ca34150fb9d44 to your computer and use it in GitHub Desktop.
Save renzors/55fde4804619aa458c4ca34150fb9d44 to your computer and use it in GitHub Desktop.
$insight = Get-AzureRmResource -ResourceName #{LOCAL.AppInsights} -ResourceGroupName #{LOCAL.ResourceGroupName}
$webapp = Get-AzureRmResource -ResourceName #{LOCAL.WebAppName} -ResourceGroupName #{LOCAL.ResourceGroupName}
$webappid = $webapp.ResourceId
$insight.tags += @{"hidden-link:$webappid"="Resource"}
Set-AzureRmResource -Tag $insight.Tags -ResourceId $insight.ResourceId -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment