mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-20 20:24:22 -04:00
Create Application Insights early so they are ready when VM needs them. (#213)
This commit is contained in:
parent
1c34792005
commit
392ad7fe45
1 changed files with 3 additions and 3 deletions
|
@ -142,6 +142,9 @@ func (c *Creator) createAzure(ctx context.Context, cl azureclient, config *confi
|
||||||
if err := cl.CreateResourceGroup(ctx); err != nil {
|
if err := cl.CreateResourceGroup(ctx); err != nil {
|
||||||
return state.ConstellationState{}, err
|
return state.ConstellationState{}, err
|
||||||
}
|
}
|
||||||
|
if err := cl.CreateApplicationInsight(ctx); err != nil {
|
||||||
|
return state.ConstellationState{}, err
|
||||||
|
}
|
||||||
if err := cl.CreateExternalLoadBalancer(ctx); err != nil {
|
if err := cl.CreateExternalLoadBalancer(ctx); err != nil {
|
||||||
return state.ConstellationState{}, err
|
return state.ConstellationState{}, err
|
||||||
}
|
}
|
||||||
|
@ -166,9 +169,6 @@ func (c *Creator) createAzure(ctx context.Context, cl azureclient, config *confi
|
||||||
if err := cl.CreateInstances(ctx, createInput); err != nil {
|
if err := cl.CreateInstances(ctx, createInput); err != nil {
|
||||||
return state.ConstellationState{}, err
|
return state.ConstellationState{}, err
|
||||||
}
|
}
|
||||||
if err := cl.CreateApplicationInsight(ctx); err != nil {
|
|
||||||
return state.ConstellationState{}, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return cl.GetState()
|
return cl.GetState()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue