Coder Social home page Coder Social logo

azureml-compute-instances-shutdown's Introduction

Azure Machine Learning

Architecture

alt text

  • MailSender

    • Trigger: Time Trigger
    • Action: Send mail to a user with a link to avoid Compute Instance shutdown
    • Services: SendGrid
  • CancelShutDown

    • Trigger: HTTP Trigger
    • Action: Add an entry on Azure Table Storage to cancel compute instance shutdown, triggered by user interaction with mail
    • Services: Azure Table Storage
  • ComputeShutdown

    • Trigger: Time Trigger
    • Action: Perform compute instance shutdown if no entry is found in the Azure Table Storage
    • Services: Azure Table Storage, Azure Machine Learning

How To Get Started

Create a Service Principal

Create a Azure Service Principal to access the workspace as Contributor role

Deploy the solution

Clone the git repo
Open it with Visual Code
Deploy the Azure Functions as described in the following link

Configure the solution

Use the following link to configure the App Settings:

  • AzureWebJobsStorage

    • Connection string to Azure Blob Storage for Azure Functions configuration
  • FUNCTIONS_WORKER_RUNTIME

    • Keep it as "python"
  • tenant_id

    • Your Azure Active Direcotry Tenant Id
  • subscription_id

    • Your Azure Subscription Id
  • service_principal_id

  • service_principal_password

  • resource_group

    • Your Azure Machine Learning Workspace Resource Group
  • aml_workspace

    • Your Azure Machine Learning Workspace name
  • aml_compute_instance

    • The Compute Instance name you want to shutdown
  • SENDGRID_API_KEY

  • func_cancel_shutdown

    • The link to your Azure Functions to shutdown the Compute Instance (see this link)
  • from_email

    • Email sender
  • to_emails

    • Mail user to be notified
  • subject

    • Mail subject to be sent
  • Configure App settings for Azure Functions

  • Getting Started with Azure Functions

azureml-compute-instances-shutdown's People

Contributors

ruoccofabrizio avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.