Git Product home page Git Product logo

app-service-msi-keyvault-python's Introduction

App Service on Linux using Python to Access Key Vault

This sample python application is meant to demonstrate the ability to retrieve a secret from Azure Key Vault from an App Service on Linux Web App that has a Managed Identity configured.

Prerequisites

This sample python application is meant to be used in tandem with the Pluralsight course Managing and Configuring Microsoft Azure Key Vault. The process for creating the necessary components is included in the GitHub repository for the course. You will need to create the following:

  • An Azure Key Vault
  • A secret within Azure Key Vault to retrieve
  • An Azure Web App on Linux with Git deployment enabled and a System Assigned identity
  • An access policy on the Key Vault granting the WebApp MSI get permissions to secrets

Process

Deploy the application using Git deployment to the Web App. Browse to the Web App and fill out the form fields. The Key Vault name should just be the name, not the full URI. The secret name should just be the name of the secret and not the URI either. The Web App will get a token for Key Vault using its MSI and then attempt to access the value of the secret. It will return a page with the secret value if it is successful.

app-service-msi-keyvault-python's People

Contributors

lmazuel avatar microsoftopensource avatar msftgits avatar ned1313 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.