Lockdown 1, Citizens 0
We've been officially in lockdown for one year thanks to government overreaction to Covid-19. Don't get me wrong - I'm not implying here that Covid-19 doesn't exist or isn't deadly. I actually lost an old high school friend to the virus last year. State and local government's decisions to quarantine the healthy was an outrageous idea, one that has never happened in the history of the world. Thousands of businesses were closed and millions of workers lost their jobs because of this terrible strategy. An unknown number of people were impacted by depression and our children went an entire year without a formal education. Inexpensive, proven treatments such as hydroxychloroquine, Ivermectin, and others were ignored in favor of developing newer, more expensive, and unproven "vaccines" that were never formally approved by the FDA. How many people died while inexpensive, proven treatments were ignored or otherwise supressed in favor of expensive, higher-risk MRNA gene therapies designed to generate massive profits for pharmaceutical companies? Many of our government, scientific, and business leaders have blood on their hands for such disgraceful activities. May God have mercy on us all.
Working locally with Azure Functions
Parking this here because I keep forgetting how to do this...
When working with Functions the local.settings.json file stores app settings, connection strings, and other settings used by local development tools. The local.settings.json file isn't checked into your repo because it typically contains sensitive data like connection strings and similar info. This means you need to restore or recreate the local.settings.json file anytime you need to run a Function locally. I've seen multiple ways to do this and some no longer work. I'm saving this approach here since it seems to work fine (for now, anyway).
- Open a command line as admin and navigate to the project folder containing your Function..
- Type the following command and hit enter:
func azure functionapp fetch-app-settings <your-function-name>
- This will rebuild your local.settings.json file but the values in it will be encrypted. Enter the following command to decrypt these values:
func settings decrypt
- You should now be able to debug or run your Function locally.
This just makes me smile
Ok well that's just evil
Trying to write a Unit Test for Azure Event Hub and there doesn't seem to be a way to mock the PartitionContext class. After doing some digging I found what seemed to be a way to do this, only to learn that Azure ServiceBus also has a ParitionContext that can be mocked but it's not compatible with an Azure EventHub PartitionContext. I feel like someone on the Azure Event Hubs team is trolling people that want to write a Unit Test...