Wednesday, October 30, 2019

Assign and verify Microsoft Azure AD custom domain using Azure App Service Domains

10 minutes to read.


Have you ever heard of the word Doppelganger? It means ghostly double or counterpart of living person. There is theory that says, In today’s world there are 7 people who look similar to you. There are 6.4 billions basepairs in Human DNA. So I don’t trust this theory. However humans made sure that when it comes to internet world, there is one thing always unique – domain names. Domain names are very critical and there have been many famous domain name battles on uniqueness. One of the famous domain name battle was “Microsoft vs. MikeRoweSoft”. What? You never heard of it? Go search the internet.

Domain names can make or break an identify for your business. Custom domain names are inevitable in today’s world. If you want to be successful with your business/ website then custom domain name is a must. Microsoft Azure services also need custom domain names so that instance of Microsoft Azure services names can be aligned with your business / company names.

Azure AD is central to any Microsoft Azure based environment. All subscriptions belong to Azure AD and Azure subscriptions related identity management is also managed through Azure AD. Any Azure AD created will always have form as “”. So when you create a user in Azure AD the FQDN of Azure AD user will be “” Example I have an Azure Active Directory named “” then user “kunal” will have FQDN as “”. This is definitely not a user friendly name. If I change it to then it appeals a lot.

So custom domain for Azure AD is good to have thing!

Best thing is you DON’T have to go for external domain registrars/ providers like GoDaddy, HostGator, Bluehost etc. Microsoft Azure provides domain names through Azure App Service domains and you can use it anywhere including Azure AD.

Let’s go!

Relationship in Domains Names, DNS Records, DNS Zones and equivalent Microsoft Azure services

This is important to know aspects such as Domain Names, DNS Zones and DNS Records concepts in general and in Microsoft Azure platform. Refer below important diagram.

Domain names are provided by domain name registrars. Owning the domain names gives you right to control the DNS hierarchy. These purchased domain names are hosted on DNS names servers in terms of DNS Records. The domain registrar has their own name servers or they also allow you to specify your own/ preferred name servers. You host the domain names on name servers as DNS Records like A records, CName record, Txt record and so on. The combination of Names servers and DNS records is called as DNS Zones.
For purchasing domain names Azure provides “Azure App Service domain” and for DNS Zones Azure provides service called as “Azure DNS”.

Sunday, October 13, 2019

Azure Cost Optimization - Effective use of Azure App Service and App Service Plans


Azure cost optimization is becoming a reality and must do for every organization. Limiting cloud spend is top most priority for many organizations to continue the show. While Microsoft Azure drives organizations to perform “Digital Transformation” and “App Modernization”; the IT Heads are finding it difficult to keep the cost low for cloud services. This does not mean that Microsoft Azure do not offer you choices to bring your Azure cost down rather cloud approach is meant to bring your IT cost down. However if you are not doing smartly then obviously you are not getting most out of your Azure journey. I have seen mainly the ignorance from IT Heads, IT admins, Cloud Administrators and lack of knowledge [Most of the time I call it Laziness] causing much of the problems. Microsoft Azure gives you enough choices, ways and tools to make sure you optimize the Azure cost. Remember Azure Cost Optimization is a journey and you have to continuously monitor it.

As always, my dear [and of course lazy] followers keep asking to bring down Azure cost and what are the effective ways of doing it. For you guys [and girls] I have started a dedicated page for “Azure Cost Optimization”. On this page I will be adding the tricks and tips for Azure cost optimization. Link of this page can be found at the end of article or on the top.

Let’s go!

Why Azure App service for cost optimization?

How many of you have seen KeyNote of Satya Nadella held in July 2019 at Microsoft Inspire conference? If not go watch it. Refer to below screenshot –

It was stated that in next 5 years, 500 million apps/ applications will be created. When we talk about creating so many applications definitely major chunk will be web applications, REST API and web hosted applications. The question where will be those applications hosted. The service which is scalable, resilient and easy to configure will win the race. Azure App Service exactly fits into it. Azure App Service is a platform which makes it super easy for hosting web-based applications primarily. The current momentum of Azure App service is also amazing.

So obviously Azure App service is the primary way of hosting web applications and will increase exponentially in coming future. So in essence it is important for us to know how can we save cost when we host our applications on Azure App Service. 

The costliest resource on cloud – Compute

Microsoft Azure is made of 3 basic building blocks – Network, Storage and Compute. All services are built on top of these building blocks. For any computing, processing , analysis you need compute power. For Azure, “Compute” is the most costly resource as compared to Networking and Storage. If you save on Compute then you perform major cloud cost optimization.

In Azure App service, the compute, network and storage for your application is provided by Azure App Service Plans.

Understanding Azure App Service Plans