Azure Code Samples

Learn to interact with Azure services through code

27 code samples match your filter

Calling Microsoft Graph from a web app using ADAL Python

A Python Web App calling the Microsoft Graph API, leveraging ADAL Python

  • Azure Active Directory
  • Python
azure-samples by Azure Samples,
Last updated: 8/1/2019

Azure Storage: Getting Started with Azure Storage in Python

Samples documenting basic operations with Azure storage services (Blob, File, Table, Queue) in Python

  • Storage Accounts
  • Python
dineshmurthy by Dinesh Murthy,
Last updated: 7/1/2019

Use Key Vault from App Service with Managed Service Identity and Python

Sample that shows how to fetch a secret from Azure Key Vault at run-time from an App Service with a Managed Service Identity (MSI) and Python.

  • App Service
  • Key Vault
  • Python
lmazuel by Laurent Mazuel,
Last updated: 6/27/2019

Manage Azure websites with Python

This sample demonstrates how to manage your WebApps using the Python SDK

  • App Service
  • Python
lmazuel by Laurent Mazuel,
Last updated: 6/27/2019

Azure Management API IaaS VM Inventory Sample Scripts

This sample generates a list of VMs and associated disks that allows you to examine the deployed resources.

  • Virtual Machines
  • Python
abhisekb by Abhisek Banerjee,
Last updated: 6/16/2017

Managing network access to a key vault using the Azure Python SDK

Demonstrates managing network access to a key vault through VNET and IP ACLs using the Azure Python SDK

  • Key Vault
  • Python
schaabs by Scott Schaab,
Last updated: 6/29/2018

How to get started for using IoT Hub REST API in Python

This Python sample app is used by the getting started content to demonstrate how easy it is to create an IoTHub Instance on Azure portal, and register a new device for the IoTHub, then send a message from device (simulated device app) to cloud.

  • Azure IoT Hub
  • Python
msonecode by One Code,
Last updated: 3/28/2017

Microsoft Azure Billing API Code Samples: RateCard API

Sample code that calls Azure Billing rateCard REST API to retrieve the list of resources per Azure offer in a given subscription, along with the pricing details for each resource.

  • Python
azure-samples by Azure Samples,
Last updated: 6/21/2018

Azure Storage: Getting Started with Azure Storage in Python

This sample demonstrates how to make a use of modules provided by Microsoft Azure Queue Service in Python.

  • Storage Accounts
  • Python
dineshmurthy by Dinesh Murthy,
Last updated: 12/20/2018

U-SQL: Python Hello World

U-SQL Python Hello World

  • Data Lake Analytics
  • Python
saveenr by Saveen Reddy,
Last updated: 5/24/2018

How to create Azure Batch PaaS Cloud service by Python

This sample demonstrates how to use Python to create PaaS cloud service pool in Azure Batch

  • Batch
  • Python
msonecode by One Code,
Last updated: 2/16/2017

Managing storage account keys in Azure Key Vault using the Azure Python SDK

Managing storage account keys in Azure Key Vault samples using the Azure Python SDK

  • Key Vault
  • Python
schaabs by Scott Schaab,
Last updated: 6/29/2018

Azure Storage: Getting Started with Azure Storage in Python

This sample demonstrates how to make a use of modules provided by Microsoft Azure Table Service in Python.

  • Storage Accounts
  • Python
dineshmurthy by Dinesh Murthy,
Last updated: 11/15/2017

Authentication samples for Azure Key Vault using the Azure Python SDK

Samples of authenticating to an Azure Key Vault vault

  • Key Vault
  • Python
schaabs by Scott Schaab,
Last updated: 6/29/2018

Python sample for Azure App Service - Django

This Python (Django) sample app is used by the getting started content to demonstrate how easy it is to develop a web app and deploy it to Azure App Service.

  • App Service
  • Python
cephalin by Cephas Lin,
Last updated: 3/28/2017

Azure Storage: Getting Started with Azure Storage in Python

This sample demonstrates how to make a use of modules provided by Microsoft Azure File Service in Python.

  • Storage Accounts
  • Python
dineshmurthy by Dinesh Murthy,
Last updated: 12/20/2018

hdinsight-dotnet-python-azure-storage-shared-access-signature

How to restrict access to Azure blob storage from HDInsight by using shared access signatures. This sample spans HDInsight and Azure Storage, and samples are provided for dotnet and python.

  • HDInsight
  • .NET
  • Python
blackmist by Larry Franks,
Last updated: 8/9/2016

Python Contoso Ads Application Cloud Service

This project demonstrates how to build Python Contoso Ads Azure Cloud Service

  • Cloud Services
  • Python
msonecode by One Code,
Last updated: 2/16/2017