Skip to content

Instantly share code, notes, and snippets.

@Pujolsluis
Last active March 3, 2021 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pujolsluis/9a137be58873a0d2502d7e321e94d119 to your computer and use it in GitHub Desktop.
Save Pujolsluis/9a137be58873a0d2502d7e321e94d119 to your computer and use it in GitHub Desktop.
Creating Azure Function Commands
func templates list
func init Currency - dotnet
cd Currency
func new - template "HTTP trigger" - name "CurrencyFunction"
dotnet add package AngleSharp - version 0.14.0
//Add the following code to the CurrencyFunction.cs file: <https://github.com/AngelGarcia13/AzureCurrencyFunction/blob/master/src/CurrencyFunction.cs>
func start
az login
az account list - output table
az account set - subscription Your-Subscription-Id
az group create - name dev-az - location "West Europe"
az storage account create - name currencydevstorage - location "West Europe" - resource-group dev-az - sku Standard_LRS
az functionapp create - resource-group dev-az - consumption-plan-location westeurope - runtime dotnet - functions-version 3 - name
my-currency-function - storage-account currencydevstorage
func azure functionapp publish my-currency-function
func azure functionapp logstream my-currency-function - browser
az group delete - name "dev-az"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment