<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Azure on Bryan Avery</title><link>https://bryanavery.co.uk/categories/azure/</link><description>Recent content in Azure on Bryan Avery</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><copyright>© 2026 Bryan Avery.</copyright><lastBuildDate>Tue, 07 May 2024 15:13:34 +0000</lastBuildDate><atom:link href="https://bryanavery.co.uk/categories/azure/index.xml" rel="self" type="application/rss+xml"/><item><title>Enhancing Azure Security Through Structured Automation and Controlled Provisioning</title><link>https://bryanavery.co.uk/enhancing-azure-security-through-structured-automation-and-controlled-provisioning/</link><pubDate>Tue, 07 May 2024 15:13:34 +0000</pubDate><guid>https://bryanavery.co.uk/enhancing-azure-security-through-structured-automation-and-controlled-provisioning/</guid><description>&lt;p&gt;In the constantly evolving landscape of cloud computing, security remains a paramount concern, especially for platforms as extensively utilised as Microsoft Azure. This blog delves into the importance of implementing robust security measures, illustrated through a case study on structured automation and controlled provisioning in a secure-by-design environment.&lt;/p&gt;</description></item><item><title>Event Bus Working Sample</title><link>https://bryanavery.co.uk/event-bus-working-sample/</link><pubDate>Wed, 12 Feb 2020 14:24:46 +0000</pubDate><guid>https://bryanavery.co.uk/event-bus-working-sample/</guid><description>&lt;p&gt;This article will show how to use an Event Bus using RabbitMQ using Work Queues that will be used to distribute time-consuming tasks among multiple workers.&lt;/p&gt;&#10;&lt;span id="more-1296"&gt;&lt;/span&gt;&#10;&lt;p&gt;Getting started with an Event Bus is fast and easy. This quick start guide uses RabbitMQ with .NET Core. RabbitMQ must be installed, instructions for &lt;a href="https://www.rabbitmq.com/download.html"&gt;installing RabbitMQ are included here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>How to configure remote debugging for Web Apps &amp; Visual Studio 2017</title><link>https://bryanavery.co.uk/how-to-configure-remote-debugging-for-web-apps-visual-studio-2017/</link><pubDate>Wed, 28 Nov 2018 14:35:38 +0000</pubDate><guid>https://bryanavery.co.uk/how-to-configure-remote-debugging-for-web-apps-visual-studio-2017/</guid><description>&lt;p&gt;A nice short video showing how to debug a web service in Microsoft Azure&lt;/p&gt;&#10;&lt;p&gt;&lt;iframe allowfullscreen="allowfullscreen" frameborder="0" height="315" src="https://www.youtube.com/embed/2-Dt8521Ixk" width="560"&gt;&lt;/iframe&gt;&lt;/p&gt;</description></item><item><title>Azure Resource Manager Templates Tips and Tricks for a Application Service</title><link>https://bryanavery.co.uk/azure-resource-manager-templates-tips-and-tricks-for-a-application-service/</link><pubDate>Fri, 23 Jun 2017 08:34:28 +0000</pubDate><guid>https://bryanavery.co.uk/azure-resource-manager-templates-tips-and-tricks-for-a-application-service/</guid><description>&lt;p&gt;Over the past week, I spent some time automating Azure App Service infrastructure with Azure Resource Manager (ARM) templates. I discovered a few tips and tricks along the way that I’ll describe in detail below…&lt;/p&gt;</description></item><item><title>Allow access to Azure services, what does this actually mean?</title><link>https://bryanavery.co.uk/allow-access-to-azure-services-what-does-this-actually-mean/</link><pubDate>Wed, 14 Jun 2017 08:36:47 +0000</pubDate><guid>https://bryanavery.co.uk/allow-access-to-azure-services-what-does-this-actually-mean/</guid><description>&lt;p&gt;I did some quick research on the SQL Server Firewall “Allow Access to Azure Services” option in Azure today.&lt;/p&gt;&#10;&lt;p&gt;And I sorry to say that my fears were right, that by setting this option does pose a significant security risk and leaves the SQL Server vulnerable.&lt;/p&gt;</description></item><item><title>Azure Key Vault Setting up</title><link>https://bryanavery.co.uk/azure-key-vault-setting-up/</link><pubDate>Tue, 06 Jun 2017 11:12:29 +0000</pubDate><guid>https://bryanavery.co.uk/azure-key-vault-setting-up/</guid><description>&lt;p&gt;Setting up Azure Key Vault for use within a .NET application is not an easy process, as it is a secure environment and security is required to gain access, which involved the Active Directly Application registrations and Access Policies.&lt;/p&gt;</description></item><item><title>A web-developer’s guide to help eliminate non-coding tasks and get code done faster</title><link>https://bryanavery.co.uk/a-web-developers-guide-to-help-eliminate-non-coding-tasks-and-get-code-done-faster/</link><pubDate>Fri, 24 Mar 2017 14:04:26 +0000</pubDate><guid>https://bryanavery.co.uk/a-web-developers-guide-to-help-eliminate-non-coding-tasks-and-get-code-done-faster/</guid><description>&lt;p&gt;Microsoft have just published this great eBook which helps web developers cut right to the code scripting of environments to make all the firewall ports and get code done quickly by providing an overview of key services in the cloud, what services to use based on your needs, step by step guidance, sample code, sample applications, and a free account to get started.&lt;/p&gt;</description></item><item><title>Deployments Best Practices</title><link>https://bryanavery.co.uk/deployments-best-practices/</link><pubDate>Thu, 13 Oct 2016 11:00:10 +0000</pubDate><guid>https://bryanavery.co.uk/deployments-best-practices/</guid><description>&lt;header&gt;&#10;&lt;h1&gt;Table of Contents&lt;/h1&gt;&#10;&lt;/header&gt;&#10;&lt;div class="page"&gt;&#10;&lt;section class="first" id="deployments"&gt;&#10;&lt;div class="wrapper"&gt;&#10;&lt;article&gt;&#10;&lt;div class="container"&gt;&#10;&lt;ul class="toc"&gt;&#10;&lt;li&gt;&lt;a href="https://bryanavery.co.uk/index.html%3Fp=449.html#introduction"&gt;Introduction&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://bryanavery.co.uk/index.html%3Fp=449.html#the-workflow"&gt;The Workflow&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://bryanavery.co.uk/index.html%3Fp=449.html#development-environment"&gt;Development Environment&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://bryanavery.co.uk/index.html%3Fp=449.html#staging-environment"&gt;Staging Environment&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://bryanavery.co.uk/index.html%3Fp=449.html#production-environment"&gt;Production Environment&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://bryanavery.co.uk/index.html%3Fp=449.html#permissions"&gt;Permissions&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://bryanavery.co.uk/index.html%3Fp=449.html#conclusion"&gt;Conclusion&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div&gt;&#10;&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;&#10;&lt;p&gt;This guide is aimed to help you better understand how to deal with deployments in your development workflow and provide some best practices. Sometimes a bad production deployment can ruin all the effort you have invested in a development process. Having a solid deployment workflow can become one of the greatest advantages of your team.&lt;/p&gt;&#10;&lt;p&gt;Before you start, I recommend reading our &lt;a href="https://bryanavery.co.uk/index.html%3Fp=450.html"&gt;Developing and Deploying with Branches&lt;/a&gt; guide first to get a general idea of how branches should be setup in your repository to be able to fully utilize tips from this guide. It’s a great read!&lt;/p&gt;&#10;&lt;h3 id="note-on-development-branch"&gt;Note on Development Branch&lt;/h3&gt;&#10;&lt;p&gt;In this guide you will see a lot of references to a branch called &lt;i&gt;development&lt;/i&gt;. In your repository you can use &lt;i&gt;master&lt;/i&gt; (Git), &lt;i&gt;trunk&lt;/i&gt; (Subversion) or &lt;i&gt;default&lt;/i&gt; (Mercurial) for the same purpose, there’s no need to create a branch specifically called “development”. I chose this name because it’s universal for all version control systems.&lt;/p&gt;&#10;&lt;h2 id="the-workflow"&gt;The Workflow&lt;/h2&gt;&#10;&lt;p&gt;Deployments should be treated as part of a development workflow, not as an afterthought. If you are developing a web site or an application, your workflow will usually include at least three environments: Development, Staging and Production. In that case the workflow might look like this:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Developers work on bugs and features in separate branches. Really minor updates can be committed directly to the stable development branch.&lt;/li&gt;&#10;&lt;li&gt;Once features are implemented, they are merged into the staging branch and deployed to the Staging environment for quality assurance and testing.&lt;/li&gt;&#10;&lt;li&gt;Once testing is complete, feature branches are merged into the development branch.&lt;/li&gt;&#10;&lt;li&gt;On the release date, the development branch is merged into production and then deployed to the Production environment.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Let’s take a closer look at each environment to see what are the most efficient way to deploy each one of them.&lt;/p&gt;&#10;&lt;h2 id="development-environment"&gt;Development Environment&lt;/h2&gt;&#10;&lt;p&gt;If you make web applications, you don’t need a remote development environment, every developer should have their own local setup.&lt;/p&gt;&#10;&lt;p&gt;Many customers have Development environments set up with automatic deployments on every commit or push. While this gives developers a small advantage of not installing the site or the application on their computers to perform testing locally, it also wastes &lt;em&gt;a lot&lt;/em&gt; of time. Every tiny change must be committed, pushed, deployed, and only then it can be verified. If the change was made by mistake, a developer will have to revert it, push it, then redeploy.&lt;/p&gt;&#10;&lt;p&gt;Testing on a local computer removes the need to commit, push and deploy completely. Every change can be verified locally first, then, once it’s more or less stable, it can be pushed to a Staging environment for proper quality assurance testing.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;However, what this does provide, is an environment that can ensure the auto-deployment to environment is successful and runs in an independent installation process far removed from the developers’ environment.&lt;/p&gt;&#10;&lt;div&gt;&#10;&lt;p&gt;&lt;strong&gt;We do not recommend using deployments for rapidly changing development environments. Running your software locally is the best choice for that sort of testing.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;We recommend to deploy to the development environment automatically on every commit or push.  This will ensure that the build process is full working.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;h2 id="staging-environment"&gt;Staging Environment&lt;/h2&gt;&#10;&lt;p&gt;Once the features are implemented and considered fairly stable, they get merged into the staging branch and then automatically deployed to the Staging environment. This is when quality assurance kicks in: testers go to staging servers and verify that the code works as intended.&lt;/p&gt;&#10;&lt;p&gt;It is very handy to have a separate branch called &lt;i&gt;staging&lt;/i&gt; to represent your staging environment. It will allow developers to deploy multiple branches to the same server simultaneously, simply by merging everything that needs to be deployed to the staging branch. It will also help testers understand what exactly is on staging servers at the moment, just by looking inside the staging branch.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;We recommend always deploying major releases to staging at a scheduled time, of which the whole team is aware of.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;h2 id="production-environment"&gt;Production Environment&lt;/h2&gt;&#10;&lt;p&gt;Once the feature is implemented and tested, it can be deployed to production. If the feature was implemented in a separate branch, it should be merged into a stable development branch first. The branches should be deleted after they are merged to avoid confusion between team members.&lt;/p&gt;&#10;&lt;p&gt;The next step is to make a to show the difference between the production and development branches to take a quick look at the code that will be deployed to production. This gives you one last chance to spot something that’s not ready or not intended for production. Things like debugger breakpoints, verbose logging or incomplete features.&lt;/p&gt;&#10;&lt;p&gt;Once the &lt;a href="https://git-scm.com/docs/git-diff"&gt;diff&lt;/a&gt; review is finished, you can merge the development branch into production and then initialize a deployment of the production branch to your production environment by hand. Specify a meaningful message for your deployment so that your team knows exactly what you deployed.&lt;/p&gt;&#10;&lt;p&gt;Make sure to only merge development branch into production when you actually plan to deploy. Don’t merge anything into production in advance. Merging on time will make files in your production branch match files on your actual production servers and will help everyone better understand the state of your production environment.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;We recommend always deploying major releases to production at a scheduled time, this should be a MANUALLY process not automated (This can be as simple as clicking a link to start the process going or moving some files, it just needs to be a human who activates the process), of which the whole team is aware of.&lt;/strong&gt;  Find the time when your application is least active and use that time to roll out updates. This may sound obvious, but make sure that it’s not too late in the day, because someone needs to be around after the deployment for at least a few hours to monitor the application and make sure the deployment went fine. Urgent production fixes can be deployed at any time.&lt;/p&gt;&#10;&lt;p&gt;After deployment finishes make sure to verify it. It is best to check all the features or fixes that you deployed to make sure they work properly in production. It is a big win if your deployment tool can send an email to all team members with a summary of changes after every deployment. This helps team members to understand what exactly went live and how to communicate it to customers. Beanstalk does this for you automatically.&lt;/p&gt;&#10;&lt;p&gt;Your deployment to production is now complete, time to pop champagne and celebrate with your team!&lt;/p&gt;&#10;&lt;h3 id="rolling-back"&gt;Rolling Back&lt;/h3&gt;&#10;&lt;p&gt;Sometimes deployments don’t go as planned and things break. In that case you have the possibility to rollback. However, you should be as careful with rollbacks as with production deployments themselves. Sometimes a rollback brings more havoc than the issue it was trying to fix. So first of all stay calm and don’t make any sudden moves. Before performing a rollback, answer the following questions:&lt;/p&gt;&#10;&lt;h4&gt;Did it break because of the code that I deployed, or did something else break?&lt;/h4&gt;&#10;&lt;p&gt;You can only rollback files that you deployed, so if the source of the issues is something else a rollback won’t be much help.&lt;/p&gt;&#10;&lt;h4&gt;Is it possible to rollback this release?&lt;/h4&gt;&#10;&lt;p&gt;Not all releases can be rolled back. Sometimes a release introduces a new database structure that is incompatible with the previous release. In that case if your rollback, your application will break.&lt;/p&gt;&#10;&lt;p&gt;If the answer to both questions is “yes”, you can rollback safely. After rollback is done, make sure to fix the bug that you discovered and commit it to either the development branch (if it was minor) or a separate bug-fix branch. Then proceed with the regular bug-fix branch → staging; bug-fix → development → production integration workflow.&lt;/p&gt;&#10;&lt;h3 id="deploying-urgent-fixes"&gt;Deploying Urgent Fixes&lt;/h3&gt;&#10;&lt;p&gt;Sometimes you need to deploy a bug-fix to production quickly, when your development branch is not ready for release yet. The workflow in that case stays the same as described above, but instead of merging the development branch into production you actually merge your bug-fix branch first into the development branch, then separately into production, without merging development into production. Then deploy the production branch as usual. This will ensure that only your bug-fix will be deployed to the production environment without all the other stuff from the development branch that’s not ready yet.&lt;/p&gt;&#10;&lt;p&gt;It is important to merge the bug-fix branch to both the development and production branches in this case, because your production branch should never include anything that doesn’t exist in your stable development branch. The development branch is where developers work all day, so if your fix is only in the production branch they will never see it and it can cause confusion.&lt;/p&gt;&#10;&lt;h3 id="automatic-deployments-to-production"&gt;Automatic Deployments to Production?&lt;/h3&gt;&#10;&lt;p&gt;I can’t stress enough how important it is for all production deployments to be performed and verified by a responsible human being. Using automatic deployments for Production environment is dangerous and can lead to unexpected results. If every commit is deployed to your production site automatically, imagine what happens when someone commits something by mistake or commits an incomplete feature in the middle of the night when the rest of the team is sleeping? &lt;strong&gt;Using automatic deployments makes your Production environment very vulnerable. Please don’t do that, always deploy to production manually.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;h2 id="permissions"&gt;Permissions&lt;/h2&gt;&#10;&lt;p&gt;Every developer should be able to deploy to the Staging environment. They just need to make sure they don’t overwrite each other’s changes when they do. That’s exactly why the staging branch is a great help: all changes from all developers are getting merged into it so it contains all of them.&lt;/p&gt;&#10;&lt;p&gt;Your Production environment, ideally, should only be accessible to a limited number of experienced developers. These guys should always be prepared to fix the servers immediately after a deployment went rogue.&lt;/p&gt;&#10;&lt;h2 id="conclusion"&gt;Conclusion&lt;/h2&gt;&#10;&lt;p&gt;We’ve been using this workflow with many customers for many years to deploy their application. Some of these things were learned the hard way, through broken production servers. Following these guidelines and all production deployments will become incredibly smooth and won’t cause any stress at all.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://guides.beanstalkapp.com/deployments/best-practices.html"&gt;Orginal Article&lt;/a&gt;&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/article&gt;&#10;&lt;/div&gt;&#10;&lt;/section&gt;&#10;&lt;/div&gt;</description></item><item><title>Visual Studio Team Services Security</title><link>https://bryanavery.co.uk/visual-studio-team-services-security/</link><pubDate>Thu, 13 Oct 2016 07:56:47 +0000</pubDate><guid>https://bryanavery.co.uk/visual-studio-team-services-security/</guid><description>&lt;p&gt;Using Azure can open up a can of worm around security and many customers have many concerns&lt;/p&gt;&#10;&lt;p&gt;Microsoft do a lot of things to keep your Team Service project safe and secure, refer to this link for details: &lt;a href="https://www.visualstudio.com/en-us/articles/team-services-security-whitepaper"&gt;Visual Studio Team Services Data Protection Overview&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Azure Security Center</title><link>https://bryanavery.co.uk/azure-security-center/</link><pubDate>Wed, 12 Oct 2016 08:40:01 +0000</pubDate><guid>https://bryanavery.co.uk/azure-security-center/</guid><description>&lt;p&gt;It is important that when using Azure that you take security very seriously, I’ve been looking around to see if I can get together as much information as I can to help businesses protect the environments that they relay on so much to run their businesses.&lt;/p&gt;</description></item><item><title>Azure Resource Manager Compute Templates</title><link>https://bryanavery.co.uk/azure-resource-manager-compute-templates/</link><pubDate>Mon, 30 May 2016 07:15:27 +0000</pubDate><guid>https://bryanavery.co.uk/azure-resource-manager-compute-templates/</guid><description>&lt;p&gt;Things have moved forward in the Microsoft’s Azure cloud platform since I very first started using Azure.  One thing is for sure is that the number of services available has grown and with this growth comes the responsibility of ensuring that you can successfully deploy what you have built with the minimum about of trouble in the quickest possible time.  Along came the Azure Resource Manager (ARM) which is the service used to provision resources in your Azure subscription. It was first announced at Build 2014 when the new Azure portal (&lt;a href="https://portal.azure.com" rel="noopener noreferrer" target="_blank"&gt;portal.azure.com&lt;/a&gt;) was announced and provides a new set of JSON API’s that are used to provision resources. Before ARM, developers and IT professionals used the Azure Service Management API and the old portal (&lt;a href="https://manage.windowsazure.com" rel="noopener noreferrer" target="_blank"&gt;manage.windowsazure.com&lt;/a&gt;) to provision resources. Both portals and sets support the of API’s. However, going forward you should be using ARM, the new API’s, and the new Azure portal to provision and manage your Azure resources.&lt;/p&gt;</description></item><item><title>Backup SQL Azure</title><link>https://bryanavery.co.uk/backup-sql-azure/</link><pubDate>Sat, 28 Dec 2013 10:36:00 +0000</pubDate><guid>https://bryanavery.co.uk/backup-sql-azure/</guid><description>&lt;p&gt;There are a number of options for backing up SQL Azure, which can be found here:&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://blogs.msdn.com/b/windows_azure_technical_support_wats_team/archive/2013/03/04/different-ways-to-backup-your-windows-azure-sql-database/" target="_blank"&gt;Different ways to Backup your Windows Azure SQL Database&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;I like the Azure way, which is just exporting, importing and setting a scheduled&lt;/p&gt;</description></item><item><title>Migration from SQL to SQL Azure</title><link>https://bryanavery.co.uk/migration-from-sql-to-sql-azure/</link><pubDate>Wed, 04 Dec 2013 05:17:00 +0000</pubDate><guid>https://bryanavery.co.uk/migration-from-sql-to-sql-azure/</guid><description>&lt;h2&gt;Tasks in Migration&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Migrate users and login ID’s&lt;/li&gt;&#10;&lt;li&gt;Map data types&lt;/li&gt;&#10;&lt;li&gt;Map database objects: tables, triggers, views, stored procedures&lt;/li&gt;&#10;&lt;li&gt;Update incompatible objects to work with SQL Azure&lt;/li&gt;&#10;&lt;li&gt;Update application to work with SQL Azure&lt;/li&gt;&#10;&lt;li&gt;Migrate data to SQL Azure&lt;/li&gt;&#10;&lt;/ol&gt;</description></item></channel></rss>