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.
Join the Microsoft Python Discord (http://aka.ms/python-discord ) and the #python-virtual-labs channel to ask questions, get help with labs, and/or further instructions (also see: https://aka.ms/python-virtual-labs for our PyCascades 2021 experience).
In this lab, you will build a serverless HTTP API with Azure Functions that takes a sentence as an input and returns the sentiment of the sentence.
- Build a serverless HTTP API with Azure Functions
- Run and debug the API locally on your machine
- Deploy the API to Azure Functions
Sentiment Analysis with Python Azure Functions lab | Duration: 7 minutes
Create and work with an environment in Visual Studio Codespaces, all on the browser.
- How to get started with a GitHub repo
- How to create and run a Hello World in Python
- How to run a Flask app
Hello World in Visual Studio Codespaces lab
In this lab, you will learn how to quickly store information you collect from your documents and receipts and prepare them for further analysis. You will learn to:
- Deploy new resources in Azure
- Write your own code using new Python packages for Azure
- Analyze the information returned from the service
In this lab, you will learn how to import data into an Azure Database for PostgreSQL instance using a python script and the psycopg2
module. You will learn to:
- Connect to an Azure Database for PostgreSQL
- Use the
psycopg2
to load and query data in the database.
Azure Databse for PostgreSQL with Python lab
In this lab, you will deploy a python app to App Service using the Azure CLI.
- Use
az webapp up
to quickly provision Azure resources and deploy your app to Azure App Service. - Leverage the
local context
feature of Azure CLI to ease management operations.
Work in a dev container using Visual Studio Code
- Open existing dev container in VS Code with the Remote - Container extension
- Build a React front-end
- Initialize a PostgreSQL database
- Run a Django app
Django and PostgreSQL in a Dev Container lab
Work with a Flask application using WSL in VS Code.
- Run/debug the Flask app
- Configure application tests
- Run application tests
Debugging Flask App with WSL in VS Code lab
This workshop is meant to be an introduction to Azure Database for PostgreSQL Hyperscale (Citus). First, you will create a cluster to scale out PostgreSQL and turn it into a distributed database. Then, you will create a schema and tables, load test data, and create a rollup function to massively speed up your query workload.