Azure Code Samples

Learn to interact with Azure services through code

32 code samples match your filter

Use MSI to authenticate simply from inside a VM

Creating Azure resources using Managed Service Identity authentication and Python

lmazuel by Laurent Mazuel,
Last updated: 9/14/2017

Create a VM with MSI authentication enabled

This sample demonstrates how to create Azure virtual machine with Managed Service Identity Extension using a Python client

lmazuel by Laurent Mazuel,
Last updated: 9/13/2017

Authenticating your Python application against Azure Active Directory

A sample Python solution showing how to authenticate against Azure Active Directory (AAD) before using the Azure Data Lake Analytics (ADLA) Python SDKs.

matt1883 by Matthew Hicks,
Last updated: 9/8/2017

Authentication samples for Azure Key Vault using the Azure Python SDK

Samples of authenticating to an Azure Key Vault vault

schaabs by Scott Schaab,
Last updated: 8/23/2017

Recovery scenario samples for Azure Key Vault using the Azure Python SDK

Samples of using the Key Vault python SDK for recovering deleted Secrets, Keys, Certificates and Vaults

schaabs by Scott Schaab,
Last updated: 8/16/2017

hdinsight-python-storm-wordcount

How to use Python components in an Apache Storm topology on HDInsight

blackmist by Larry Franks,
Last updated: 8/4/2017

Azure Virtual Machines Management Samples - Python

An example illustrating how to use Python to manage your Azure Virtual Machines

lmazuel by Laurent Mazuel,
Last updated: 6/30/2017

Getting Started with Azure SQL Management in Python

An example illustrating how to use Python to manage your SQL Azure databases

lmazuel by Laurent Mazuel,
Last updated: 6/12/2017

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.

abhisekb by Abhisek Banerjee,
Last updated: 6/16/2017

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.

msonecode by One Code,
Last updated: 3/28/2017

Sign in Azure AD + MSA Users using Python-Flask Open Source Libraries

Demonstrates how you can use a third party library to build a Python-Flask application that signs in users and gets an Access Token for the Microsoft Graph.

navyasric by Navya Canumalla,
Last updated: 6/20/2017

Azure Storage: Getting Started with Azure Storage in Python

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

dineshmurthy by Dinesh Murthy,
Last updated: 8/5/2016

Deploy an SSH Enabled VM with a Template in Python

An example illustrating how to use Python to deploy an Azure Resource Manager Template

lmazuel by Laurent Mazuel,
Last updated: 5/22/2017

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.

dineshmurthy by Dinesh Murthy,
Last updated: 10/14/2016

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

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

Collecting Scheduled Events with Event Hub

Use scheduled events to create a central log of all maintenance (and other) events

zivraf by zivraf,
Last updated: 5/3/2017

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.

dineshmurthy by Dinesh Murthy,
Last updated: 9/16/2016

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.

cephalin by Cephas Lin,
Last updated: 3/28/2017