Skip to main content

Life is too short for negativity.
Architect, former CTO, consultant, author, editor, and industry/web standards expert that still enjoys writing code.
Opinions are mine alone.

twitter.com/jevdemon

keybase.io/jevdemon

www.linkedin.com/in/jevdemon/

facebook.com/john.evdemon

Restoring local appsettings for Azure Functions

1 min read

If you’ve ever worked with Azure Functions then no doubt you’ve seen the local.settings.json file before. This file stores app settings, connection strings, etc. for local development.

This file is not checked into source control by default. That means when you clone a Function app you won't be able to run it locally without the local.settings.json file.

To restore the local.settings.json file do the following:

  1. Install the Azure Functions Core Tools
  2. Open a command window and navigate to the source code where your Azure Function is
  3. Run the following command:func azure functionapp fetch-app-settings <functionname> where <functionname> is your Azure Function name
  4. This will restore your local.settings.json file, enabling you to run your Function app locally

 

Dealing with Keyvault errors due to an expired refresh token

1 min read

I haven't been able to find a truly simple guide to fixing this issue so I'm posting my own:

  1. Ensure you have the Azure Command Line installed
  2. Login using the account you're trying to use to access KeyVault (verify this in Visual Studio under Tools...Options..Azure Service Authentication - ensure the cloud account is the one you need)
    az login
  3. After successfully logging in reboot the machine.

Your KeyVault issue should be fixed at this point.

 

Silence Unknown Callers on Android

1 min read

Apple announced a new IOS feature to Silence Unknown Callers. It seems like an easy way to avoid robocalls. I wanted to do it on Android but I didn't want to install any apps to enable such functionality.

Here's how you can Silence Unknown Callers on Android wiithout using any 3rd party apps:

Step 1: Turn on Do Not Disturb
Step 2: Define Do Not Disturb exceptions: