Skip to content

Python example using the Azure-Cli in a function

License

Notifications You must be signed in to change notification settings

faas-and-furious/faas-azure-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faas-azure-cli

Python example using the Azure-Cli in a function. This example returns the Subscription Id of the first subscription in the account list.

$ git clone https://github.com/faas-and-furious/faas-azure-cli
$ cd faas-azure-cli

Azure Service Principle

You will need to create a SPN in azure and update the following lines in faas-azure-cli.yml. Follow this link to create a SPN -- Portal: Create SPN

username: <spn client id>
password: <spn client seceret>
tenant: <aad tenant id>

Now build and deploy:

$ faas-cli build -f faas-azure-cli.yml
$ faas-cli push -f faas-azure-cli.yml
$ faas-cli deploy -f faas-azure-cli.yml

Try it out:

$ curl -X POST localhost:8080/function/faasazurecli

About

Python example using the Azure-Cli in a function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published