Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $param1=$args[0]
- # check if NPM is available
- # check if Azure CLI (azure function core tools) is available
- # install azure function core tools
- # $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
- # Check if folder contains a .csproj & .settings file (aka are in right path)
- az login
- # az account set -s "<subscription-name-or-id>"
- # Obtain the settings of function by name
- func azure functionapp fetch-app-settings $param1 --output-file local.settings.json
- func settings decrypt
Advertisement
Add Comment
Please, Sign In to add comment