Skip to content

Commit

Permalink
Force kusto script to run on deployment (#9001)
Browse files Browse the repository at this point in the history
* Force kusto script to run on deployment
* Use repo.owner.login instead of .name
  • Loading branch information
hallipr authored Sep 18, 2024
1 parent 1716bb6 commit 5925ce9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ private async Task<WorkflowRun> GetWorkflowRunAsync(string owner, string reposit

private async Task<Workflow> GetWorkflowAsync(WorkflowRun run)
{
Workflow workflow = await this.client.Actions.Workflows.Get(run.Repository.Owner.Name, run.Repository.Name, run.WorkflowId);
Workflow workflow = await this.client.Actions.Workflows.Get(run.Repository.Owner.Login, run.Repository.Name, run.WorkflowId);
return workflow;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ param webAppName string
param subnetId string
param appIdentityPrincipalId string
param useVnet bool

var kustoScript = loadTextContent('../artifacts/merged.kql')
param forceUpdateTag string = utcNow()

// Storage Account for output blobs
resource logsStorageAccount 'Microsoft.Storage/storageAccounts@2021-09-01' = {
Expand Down Expand Up @@ -185,8 +184,8 @@ resource kustoScriptInvocation 'Microsoft.Kusto/clusters/databases/scripts@2022-
name: 'intitializeDatabase'
parent: kustoCluster::database
properties: {
scriptContent: kustoScript
forceUpdateTag: uniqueString(kustoScript)
scriptContent: loadTextContent('../artifacts/merged.kql')
forceUpdateTag: forceUpdateTag
}
}

Expand Down

0 comments on commit 5925ce9

Please sign in to comment.