Tag Azure resources with UID

This commit is contained in:
katexochen 2022-08-29 11:55:46 +02:00 committed by Paul Meyer
parent 69abe17c96
commit 1861dc2744
5 changed files with 74 additions and 25 deletions

View file

@ -14,6 +14,7 @@ func (c *Client) CreateApplicationInsight(ctx context.Context) error {
Properties: &armapplicationinsights.ComponentProperties{
ApplicationType: to.Ptr(armapplicationinsights.ApplicationTypeWeb),
},
Tags: map[string]*string{"uid": to.Ptr(c.uid)},
}
_, err := c.applicationInsightsAPI.CreateOrUpdate(