Skip to content

Python examples on Microsoft Azure. How to manage Virtual Machines instances, Blob Storage, Azure Functions, etc.

License

Notifications You must be signed in to change notification settings

alfonsof/azure-python-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python examples on Microsoft Azure

This repo contains Python code examples on Microsoft Azure.

These examples show how to use Python 3 and Azure SDK for Python in order to manage services on Microsoft Azure.

Azure SDK for Python allows Python developers to write software that makes use of Azure services like Virtual Machines and Blob storage.

Quick start

You must have a Microsoft Azure subscription.

The code for the samples is contained in individual folders on this repository.

For instructions on running the code, please consult the README in each folder.

This is the list of examples:

Compute - Azure Virtual Machines:

  • azurevm - Azure Virtual Machines: Example of how to handle Azure Virtual Machines.

Compute - Azure Functions:

  • azurefunctionhttprequest - Azure Function HTTP Request: Example of how to handle an Azure Function that responds to an HTTP request.
  • azurefunctionblobevent - Azure Function Blob Storage event: Example of how to handle an Azure Function that responds to a Blob Storage event (trigger) when a blob appears in a blob storage.
  • azurefunctionblobcopy - Azure Function Blob Storage copy: Example of how to handle an Azure Function that responds to a Blob Storage event (trigger) and copy the blob when it appears in a blob storage to another blob storage.
  • azurefunctionblobmove - Azure Function Blob Storage move: Example of how to handle an Azure Function that responds to a Blob Storage event (trigger) and move the blob when it appears in a blob storage to another blob storage.
  • azurefunctioneventgridevent - Azure Function Event Grid event: Example of how to handle an Azure Function that responds to an Event Grid event (trigger) when an event is sent to an Event Grid topic.
  • azurefunctioneventhubevent - Azure Function Event Hub event: Example of how to handle an Azure Function that responds to an Event Hub event (trigger) when an event is sent to an event hub event stream.

Storage - Azure Blob Storage:

  • azureblobstoragecreate - Azure Blob Storage Create: Example of how to handle Azure Blob Storage and create a new Blob Storage container in an Azure storage account.
  • azureblobstoragedelete - Azure Blob Storage Delete: Example of how to handle Azure Blob Storage and delete a Blob Storage container in an Azure storage account.
  • azureblobstoragelist - Azure Blob Storage List: Example of how to handle Azure Blob Storage and list information about the blobs in a Blob Storage container in an Azure storage account.
  • azureblobstoragelistall - Azure Blob Storage List All: Example of how to handle Azure Blob Storage and list information about all Blob Storage containers and the blobs they contain in an Azure storage account.
  • azureblobstorageupload - Azure Blob Storage Upload: Example of how to handle Azure Blob Storage and upload a local file to a Blob Storage container in an Azure storage account.
  • azureblobstoragedownload - Azure Blob Storage Download: Example of how to handle Azure Blob Storage and Download a Blob from a Blob Storage container in an Azure storage account.
  • azureblobstoragedeleteobject - Azure Blob Storage Delete Object: Example of how to handle Azure Blob Storage and delete a Blob in a Blob Storage container in an Azure storage account.
  • azureblobstoragecopy - Azure Blob Storage Copy: Example of how to handle Azure Blob Storage and copy a Blob from a Blob Storage container to another one in an Azure storage account.
  • azureblobstoragemove - Azure Blob Storage Move: Example of how to handle Azure Blob Storage and move a Blob from a Blob Storage container to another one in an Azure storage account.

Messaging and Event Services - Azure Event Grid, Azure Event Hub:

  • azureeventgridsendevent - Azure Event Grid send event: Example of how to handle an Event Grid and send events to an Event Grid Topic.
  • azureeventhubsendevent - Azure Event Hub send event: Example of how to handle an Event Hub and send events to an event hub event stream.
  • azureeventhubreceiveevent - Azure Event Hub receive event: Example of how to handle an Event Hub and receive events from an event hub event stream.

License

This code is released under the MIT License. See LICENSE file.

Releases

No releases published

Packages

No packages published

Languages