mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-19 06:30:43 -04:00
AB#2104 Feat/azure logging (#198)
implementation for azure early boot logging
This commit is contained in:
parent
963c6f98e5
commit
84552ca8f7
33 changed files with 526 additions and 212 deletions
26
cli/internal/azure/client/applicationinsight.go
Normal file
26
cli/internal/azure/client/applicationinsight.go
Normal file
|
@ -0,0 +1,26 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
|
||||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
func (c *Client) CreateApplicationInsight(ctx context.Context) error {
|
||||
properties := armapplicationinsights.Component{
|
||||
Kind: to.StringPtr("web"),
|
||||
Location: to.StringPtr(c.location),
|
||||
Properties: &armapplicationinsights.ComponentProperties{
|
||||
ApplicationType: armapplicationinsights.ApplicationTypeWeb.ToPtr(),
|
||||
},
|
||||
}
|
||||
|
||||
_, err := c.applicationInsightsAPI.CreateOrUpdate(
|
||||
ctx,
|
||||
c.resourceGroup,
|
||||
"constellation-insights-"+c.uid,
|
||||
properties,
|
||||
nil,
|
||||
)
|
||||
return err
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue