An open API service indexing awesome lists of open source software.

https://github.com/kolosovpetro/storagequeue.az204

This project is done in scope of my preparation to the AZ-204 exam, its main aim is to collect most important info in terms of azure storage queues and express it as simple as possible.
https://github.com/kolosovpetro/storagequeue.az204

azure azure-storage-queue storage-queue

Last synced: 3 months ago
JSON representation

This project is done in scope of my preparation to the AZ-204 exam, its main aim is to collect most important info in terms of azure storage queues and express it as simple as possible.

Awesome Lists containing this project

README

        

# Storage Queue Demo

[![Run Build and Test](https://github.com/kolosovpetro/StorageQueue.AZ204/actions/workflows/run-build-and-test-dotnet.yml/badge.svg)](https://github.com/kolosovpetro/StorageQueue.AZ204/actions/workflows/run-build-and-test-dotnet.yml)

This project is done in scope of my preparation to the AZ-204 exam, its main aim is to collect most
important info in terms of azure storage queues and express it as simple as possible.

## Project structure

The key components are:

- Azure storage account (General purpose v2)
- Azure storage queue
- Message sender application (.NET)
- Message consumer application (.NET)

## Managing infrastructure

Obviously, we have to maintain a basic azure infrastructure such as azure storage account + queue.
Let's perform it using azure CLI following the commands

- `az login`
- `az account set --subscription `
- `az group create --name "storage-queue-demo-rg" --location "westus"`
- `az storage account create --name "pkolosovstorage" --resource-group "storage-queue-demo-rg"`
- `az storage queue create --name "pkolosov-storage-queue" --account-name "pkolosovstorage"`

So the infrastructure is utilized.

## Required Nuget packages

- `Azure.Storage.Queues`

To install: `dotnet add package Azure.Storage.Queues`

## Settings

Both apps, consumer and sender must have azure storage account connection string of the following format

- `DefaultEndpointsProtocol=https;AccountName=pkolosovstorage;AccountKey=;EndpointSuffix=core.windows.net`
- Set it as environment variable using
powershell: `$env:AZURE_STORAGE_ACCOUT = 'DefaultEndpointsProtocol=https;AccountName=pkolosovstorage;AccountKey=;EndpointSuffix=core.windows.net'`

It could be checked at azure portal at: `storage accout -> access keys` as per screenshot below


Mango Messenger Logo