Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-azfunc-masterkey

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-azfunc-masterkey

Get master key for an Azure functionapp

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Get Azure Functionapp master key

The name of this module is very self-explanaitory. It is useful when you want to automate an Azure Functionapp deployment.

Installation

Use your favorite NPM package manager:

$ yarn global add get-azfunc-masterkey

Usage

As a cli tool:

$ get-azfunc-masterkey <path-to-authfile>

Where the authfile is written in json format representing a single toplevel object with the following fields:

  • clientId: a clientId of an Azure Active Directory application registration
  • clientSecret: the clients secret
  • tenant: the tenant ID
  • functionApp: the name of your functionapp
  • subscriptionId: the subscription ID
  • resourceGroup: the resource group where the app resides

As a JS module:

const getMasterKey = require('get-azfunc-masterkey');

getMasterKey({
    /* JS object with same fields as the authfile for the cli version */
}, (err, masterKey) => {
    if (err) {
        console.err(err);
        process.exit(1);
    }
    console.log(masterKey);
});

Note: clientId, clientSecret and tenant fields can be obtained by running:

az ad sp create-for-rbac -n <application-registration-identifier>

That will create a new application registration and return the credentials (you must have the Azure cli 2.0 app and be logged in).

FAQs

Package last updated on 03 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc