Skip to content

Commit

Permalink
add storage account name to container env.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jan 23, 2024
1 parent 11d7b20 commit ae783ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloud/azure/deploy/containerenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ func (p *NitricAzurePulumiProvider) newContainerEnv(ctx *pulumi.Context, name st
env := app.EnvironmentVarArray{}

if p.storageAccount != nil {
env = append(env, app.EnvironmentVarArgs{
Name: pulumi.String("AZURE_STORAGE_ACCOUNT_NAME"),
Value: p.storageAccount.Name,
})
env = append(env, app.EnvironmentVarArgs{
Name: pulumi.String("AZURE_STORAGE_ACCOUNT_BLOB_ENDPOINT"),
Value: p.storageAccount.PrimaryEndpoints.Blob(),
Expand Down

0 comments on commit ae783ba

Please sign in to comment.