The functionality of Azure is ever expanding. People can easily feel overwhelmed by the wealth of functionality accessible through API’s and the Azure portal.
Today I’d like to show you how you can easily store your favourite (company-specific) templates right inside the Azure environment, where it can be accessed by you, your co-workers and customers alike, secured by the RBAC mechanism we all love, trust and know how to apply in Azure.
The first thing you might ask yourself, is why should I use this? Especially since there are things on the market like Git, Github, Bitbucket, Gitlab, Launchpad and/or SourceForge.
Well, and this might come as a shock to you, not all organisations / users require the elaborate tools and processes these providers can offer. Other companies would like their customers to use only a subset of templates which do not deviate over time. For this purpose, easy storage and utilisation of templates, Microsoft created Azure templates in Azure.
You can find the feature by using the search bar on the top of the portal, looking for “templates”.
When you start out, this screen will of course be empty, but since I’ve fooled around a little with this feature, there’s already a template loaded. If you want to add a template, you can start from scratch. The only thing is, the built-in template editor won’t give you the best experience in editing a template, so I suggest re-using a template from the Azure QuickStart Template Github repo, to ensure your success on this exploration.
To add a template to this repository in Azure, click the +Add button as shown below.
As any item you deploy inAzure, the template also needs a name. Below you will see me use a name in PascalCaseTextStyle, that will be converted to all lowercase in the proces of saving your template.
In the description box place some useful information for your customer or colleagues and continue on by clicking the “OK” button on the bottom of this section.
Then, the tough bit. Here’s where you add your code to the repository. Again, this isn’t the best place to edit your code. It can work kind of sluggish, and I’d really recommend something like Visual Studio Code, Visual Studio, Atom, or even still good old Notepad++ to write and check your code before storing it here.
When the code looks ok to you, save it with a simple “OK” and after a while it will show up in the overview section of Azure templates. Or, since I’m not that patient, after hitting refresh on the top of the User Interface.
To deploy your newly created template, go to the … section of the interface and choose “Deploy”
Fill out the parameters as you are used to do in the Azure portal or in your preferred development-tool.
The steps above showed you the basics of working with Azure templates stored in an Azure repository. I’m personally looking forward to more features around this product, and can think of a few that would be on my shortlist to build out functionality.
Basic functionality looks good, I can share out these templates across my tenant and the feature logs whoever creates the templates and when.
Again, in the future I’d like to see more information on this location in the GUI, like when templates were deployed and by whom, but since the feature is still in preview, I won’t be to harsh.
Now, is this the next big thing in Azure? I guess not. Can some Azure-users benefit from this basic feature? It depends…
There are of course the companies that utilise services like Github and such that are real tech savvy who need all the bells and whistles that those platforms offer. Those companies can also afford to cope with the complexity of managing connections between the platforms, and such. For a basic user who just want to store some templates they regularly use, without the need for version management, this could be a nice fit.
Before signing off, I do have to issue a big warning to everyone excited about this addition in the Azure portal; it is a preview feature at the moment.
This means there is absolutely no certainty that this feature will be continued in the future and there is no SLA/formal support on this feature just yet. Experimenting and researching a preview-feature is fine, using it for trivial processes in your organisation might not be so fine when Microsoft decides to can this feature in the future.
Thanks for reading my blog, and if you do have some questions, post them below or come and find me on twitter; @bertwolters.
Thanks to Ben Gelens for an early review of this blog!
About the Author:
I feel honoured that you’ve taken the time to visit my blog page and now you’ve actually want to know the person behind “Azureman”.
My name is Bert Wolters and I work as a Principal Consultant at Inspark in The Netherlands. My primary focus is on Microsofts’ cloud offerings, Microsoft Azure and Azure Stack. In earlier years I used to focus on the Microsoft Datacenter Management Products, united in the Microsoft System Center Suite and Windows Server, so I still love working in that field. My work in Azure is not limited to, or focused solely on, IaaS in Azure, but I’m also very interested in the progress being made in Microsofts’ Operational Management tools, StorSimple, Hybrid Cloud Solutions and further Security aspects of the cloud..
July 1st 2016 I was extremely grateful that Microsoft awarded me with my first MVP award, even more so on July 1st 2017 when I received my second award. You can imagine how I felt when I received the award for the third time in 2018. An important thing to know is that my blogs, are my personal statements and do not necessarily reflect the opinion of my employer and/or Microsoft.
Since certification is one way to show your customers how knowledgeable you are in Microsoft technology, I think it’s very important to keep your certification up to date. Through this principal I followed a training at Nique Consultancy some years ago to be enrolled in the Microsoft Certified Trainer program. Since then I’m proud to say I can call myself a Microsoft Certified Trainer, or MCT.
Wolters, B (2019). Azure, Your Template Repository (Preview). Available at: http://www.azureman.com/infrastructure/azure-your-template-repository-preview/ [Accessed 20th February 2019]