Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View shawnweisfeld's full-sized avatar

Shawn Weisfeld shawnweisfeld

View GitHub Profile
public class StorageQueueSender : ISendMessages
{
private readonly IQueueConfiguration _configuration;
private readonly Dictionary<string, QueueClient> _queueClients = new Dictionary<string, QueueClient>();
public StorageQueueSender(IQueueConfiguration configuration)
{
_configuration = configuration;
# Use from VM in same region as azure storage account
# your VM will need an attached disk large enough to hold the zip and raw images
# we attached 2 1 TB Premium storage disk.
# https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal
# sudo chown shawn /datadrive
# create a target storage account where all the files will eventually end up
# I called mine sweisfelopenimgstg
# Now Give your AAD account 'Storage Data Owner' permissions for this account
{
"topic": "/subscriptions/55fed35b-9e49-43ba-8160-083810b1af12/resourceGroups/AzReplicateIngestionTest/providers/Microsoft.Storage/storageAccounts/azrepingtest",
"subject": "/blobServices/default/containers/test/blobs/Ugtv.png",
"eventType": "Microsoft.Storage.BlobCreated",
"eventTime": "2020-04-29T18:57:38.0962998Z",
"id": "33c414a1-501e-0099-6058-1e0e60066e9e",
"data": {
"api": "PutBlob",
"clientRequestId": "f6935de1-f7ee-4982-86c1-96702227a057",
"requestId": "33c414a1-501e-0099-6058-1e0e60000000",
{
"id": "33c414a1-501e-0099-6058-1e0e60066e9e",
"source": "/subscriptions/55fed35b-9e49-43ba-8160-083810b1af12/resourceGroups/AzReplicateIngestionTest/providers/Microsoft.Storage/storageAccounts/azrepingtest",
"specversion": "1.0",
"type": "Microsoft.Storage.BlobCreated",
"dataschema": "#",
"subject": "/blobServices/default/containers/test/blobs/Ugtv.png",
"time": "2020-04-29T18:57:38.0962998Z",
"data": {
"api": "PutBlob",
{
"name": "sweisfel561-azurefd-net",
"id": "/subscriptions/55fed35b-9e49-43ba-8160-083810b1af12/resourcegroups/tethr/providers/Microsoft.Network/frontdoors/sweisfel561/frontendendpoints/sweisfel561-azurefd-net",
"type": "Microsoft.Network/frontdoors/frontendendpoints",
"properties": {
"hostName": "sweisfel561.azurefd.net",
"sessionAffinityEnabledState": "Disabled",
"sessionAffinityTtlSeconds": 0,
"webApplicationFirewallPolicyLink": null,
"customHttpsProvisioningState": "Enabling",
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"logicAppName": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"metadata": {
"description": "Name of the Logic App."
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
class Policy
{
public List<Unit> Units { get; set; }
}