Skip to content

Guide for setting up an Azure Logic App to run a script #5932

@Jwaegebaert

Description

@Jwaegebaert

Ref: #5414


The goal of this documentation is to provide a comprehensive guide on setting up an Azure Logic App that automates the deployment and management of Azure Container Instances. This setup utilizes the CLI for Microsoft 365 Docker image to execute scripts within these instances. This guide will cover the following aspects:

  • Outline each action required within the Azure Logic App, providing step-by-step instructions on how to configure these actions for deploying and managing Azure Container Instances effectively.
  • Describe the authentication process for the CLI for Microsoft 365 within the container instance, ensuring secure script execution.
  • Provide examples on how to execute scripts within the Azure Container Instances, including any necessary permissions or roles.
  • Explain the methods available to fetch logs from the executed scripts, ensuring users can monitor and troubleshoot their scripts effectively.
  • Offer insights into best practices for managing and analyzing these logs for actionable insights.

Additional Considerations:

  • Emphasize security practices to protect sensitive information and comply with organizational policies.
  • Suggest strategies for handling errors and exceptions that may arise during the setup or execution phases.
  • Provide tips on managing costs associated with using Azure Logic Apps and Container Instances, helping users to optimize their cloud spend.

I recently worked out a demo with a working Logic App that executes a simple script. Here the Logic App will wait until the script is fully executed so it can fetch the logs and afterwards delete the spun-up instance. Ref: https://github.com/Jwaegebaert/CLIM365-Logic-App-Demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    docshelp wantedkeep-openMake sure this issue is never automatically marked as stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions