page_type | languages | products | description | urlFragment | ||
---|---|---|---|---|---|---|
sample |
|
|
A collection of labs demonstrating how to build Python applications with Azure and Visual Studio Code. |
azure-python-labs |
A collection of labs demonstrating how to build Python applications with Azure and Visual Studio Code.
Build a docker container to run a Django app using the Docker extension in Visual Studio Code to generate Dockerfiles and run the containers.
Build a new dev container using Visual Studio Code remote from scratch and create a simple Flask app inside of the new environment.
Open an existing dev container using Visual Studio Code remote extensions, build a React front-end, initialize a PostgreSQL database, and run a Django app.
Create an Azure Function in Python with an HTTP endpoint that will respond with whether or not your input is a prime number.
- Create an Azure Function using the command line interface.
- Test the default "Hello, World" Function.
- Edit the code run when the endpoint is called to determine if an input is prime.
- Test the new functionality with your own inputs.
Use a Jupyter Notebook and Azure Cognitive Services to analyze images in real time to detect faces and their dominant emotions.
In this lab you will:
- Connect to Azure Cognitive Services (ACS).
- Test the raw response from ACS.
- Use this response to create an overlay plotting the detected faces and emotions over any given image.
- Test it out with any image you want!
Build a Movie Recommender system trained with a Simple Algorithm for Recommenders (SAR) for the Movielens dataset on Azure Machine Learning service. Use the power of the cloud to manage data, switch to powerful GPU machines, and monitor runs while training a model.
In this lab you will:
- Connect to an Azure Machine Learning service workspace
- Access Movielens data from a datastore
- Connect to CPU and GPU machines from Azure Machine Learning Compute
- Create a training script using the recommender repo's util functions for SAR and add logging information
- Submit the training job to AzureML, and monitor the run with a Jupyter widget
- Test an existing model with new user data
- Optional Part 2: Deploy the model to a web service using Azure Container Instance.
This tutorial walks you through building a messaging system on Azure Service Bus that allows you to pass information back and forth between unconnected programs, with a small Flask application that has two messaging endpoints: One for sending messages to a queue, and one for retrieving them. Service Bus messaging can be used by applications which aren't connected to or authenticated with Azure, as long as they have the authentication tokens for the messaging system itself.
In this lab you will:
- Create Service Bus resources on Azure.
- Program a small Flask application to run locally.
- Send and receive messages without signing in to an Azure account.
- Optional Experiment with other ways to process queued messages.
Go to lab | Duration: 10-15 minutes
Containerize and Deploy a Python Flask application with Azure Container Registry and Azure Container Instances
In this lab you will learn to:
- Build a Python Flask application using Docker and a Dockerfile.
- Build the container image in the cloud using Azure Container Registry (ACR).
- Deploy the container image to Azure Container Instances (ACI).
Go to lab | Duration: 5-10 minutes
In this lab you will learn to:
- Set up Azure Pipelines to build and test a Python project hosted in GitHub.
- Customize the build by configuring the YAML build definition.
- Validate pull requests using GitHub Checks and Azure Pipelines
Go to lab | Duration: 5 minutes