Skip to content

Conversation

@lokesh-vadlamudi
Copy link
Contributor

@lokesh-vadlamudi lokesh-vadlamudi commented Jul 31, 2025

Summary

Replace local exec with azapi action.

Starting container app job instantly using Azure api instead of Azure cli.

This change eliminates the need to install and authenticate azure cli, which helps when executing this tf module in CI.

How did you test this change?

  • Run successful in devspace.
  • Can see that job executed in AZ portal
Screenshot 2025-07-31 at 1 53 04 PM
  • On every terraform apply
Screenshot 2025-08-01 at 3 25 40 PM Screenshot 2025-08-01 at 3 26 51 PM

We can see runs in az portal
Screenshot 2025-08-01 at 3 25 01 PM
Screenshot 2025-08-01 at 3 28 13 PM

Issue

@lokesh-vadlamudi lokesh-vadlamudi self-assigned this Jul 31, 2025
@lokesh-vadlamudi lokesh-vadlamudi marked this pull request as ready for review July 31, 2025 22:14
@lokesh-vadlamudi lokesh-vadlamudi requested review from a team as code owners July 31, 2025 22:14
Copy link
Contributor

@PengyuanZhao PengyuanZhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@kirklandnuts kirklandnuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @lokesh-vadlamudi, can you please confirm all of the prior behavior is maintained? Specifically, I'm concerned about whether the container app start is always triggered on every terraform apply (including subsequent applies)?

Comment on lines -635 to -637
triggers_replace = {
always_run = timestamp()
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lokesh-vadlamudi

This trigger_replace block ensures that this resource is always replaced on every terraform apply — i.e., this call is made during every terraform apply and the job will always execute immediately when terraform apply is run.

I don't see anything in the new code that would maintain this behavior. Can you please confirm that the behavior is maintained? If so, can you please also update the testing section in your PR description?

Copy link
Contributor

@kirklandnuts kirklandnuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for addressing the issue @lokesh-vadlamudi - this LGTM 👍

@lokesh-vadlamudi lokesh-vadlamudi merged commit 50e4471 into main Aug 1, 2025
6 checks passed
@lacework-releng lacework-releng mentioned this pull request Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants