Azure Cosmos DB

Azure Cosmos DB is Microsoft’s proprietary globally-distributed, multi-model database service “for managing data at planet-scale” launched in May 2017. It is schema-agnostic, horizontally scalable, and generally classified as a NoSQL database. Azure Cosmos DB is a fully managed NoSQL database service for modern app development. Get guaranteed single-digit millisecond response times and 99.999-percent availability, backed... » read more

Set Azure Function Time Zone for Timer Trigger

Azure Function based on Web app sandbox. Web app need you to set the timezone in env settings first. The timetrigger attribute is the declaration part of the function. The environment variables will be checked here. If you do not set the environment variables about the time zone in advance, it will be processed according... » read more

Setup Account confirmation and password recovery in ASP.NET Core

Setup SendGrid Account Setup account at https://sendgrid.com/ Get API key. NuGet and install SendGrid to app. Blazor WebAssembly Setup Note: Add to “Server” project, not “Client” project. Need to setup user secrete for the application first. Add “SendGridUser” and “SendGridKey” user secrete to Server project. secrets.json Add classes to Services folder AuthMessageSenderOptions.cs EmailSender.cs Areas.Identity.Pages.Account.RegisterConfirmation page... » read more

Secure Azure App Service Web API via Restriction Rules

Note: This will not work with a Blazor Client app because the call to the web api will be from the browser of the client. By setting up access restrictions, you can define a priority-ordered allow/deny list that controls network access to your app. The list can include IP addresses or Azure Virtual Network subnets.... » read more

Azure Function Queue Trigger Retry

Azure functions with Storage Queue trigger has a built in retry logic based on the dequeue count of the message in the queue. You can configure the frequency of the retry in the bindings either through code or host.json. After the max number of retry, the message will be placed in the <queue-name>-poison queue. visibilityTimeout┬áproperty... » read more

Azure Storage Queue Examples

Install Install following from Nuget Package Manager Azure.StorageQueues Add following reference… Add Message To Queue Note: Call to queue is not supported in Blazor Web Assembly. You will get this error message if you try to create a message. System.Security.Cryptography.Algorithms is not supported on this platform. Sources: https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues?tabs=dotnet https://docs.microsoft.com/en-us/dotnet/api/overview/azure/storage.queues-readme-pre

Azure Storage Queue

Azure Queue Storage is a service for storing large numbers of messages. You access messages from anywhere in the world via authenticated calls using HTTP or HTTPS. A queue message can be up to 64 KB in size. A queue may contain millions of messages, up to the total capacity limit of a storage account.... » read more

Azure SQL: Recover Deleted Records

Via Azure Portal, restore a copy of the database from a backup at specific point in time. Via SSMS, copy over deleted records from recovered database back to the original database. Note: In Azure Portal, go to the original database and select “Retore”. Select a point in time before the accidental delete occurred. Time is... » read more

Cron Expression

https://en.wikipedia.org/wiki/Cron#CRON_expression Each line of a crontab file represents a job, and looks like this: Example Expression Schedule 0 0 1 1 * Run once a year at midnight of 1 January 0 0 1 * * Run once a month at midnight of the first day of the month 0 0 * * 0 Run... » read more