CIDR Notation Simplified

Reading Time: 3 minutes

The aim of this blog post is to help you understand CIDR notations. The purpose of this blog post is not to understand IP address calculations. Let’s get started.

Let’s take Microsoft Azure as an example, but the same applies on all networks.

When building a VNET in Azure one of the requirements is to specify an IP range for your VNET, for example, I’ll use 10.7.0.0/16 for the purpose of this post. We further segment the IP address name space into Subnets, for example, 10.7.1.0/24, 10.7.2.0/24 and so on. To learn more about Azure Virtual Networks, visit the following Microsoft Learn link – Explore Azure Virtual Networks – Training | Microsoft Learn

The above ranges 10.7.0.0/16, 10.7.1.0/24 and 10.7.2.0/24 are known as CIDR notations.

Screenshot of VNET creation in Azure. The image shows an IP address name space of 10.7.0.0/16 and a single subnet of 10.7.0/24

So why do we use CIDR notations and how do we work them out?

The definition of CIDR notation from Wikipedia: Classless Inter-Domain Routing is a method for allocating IP addresses and for IP routing.

Let’s try to simplify further,

CIDR notation is a convenient way to write subnet masks instead of having to type/write, for example, 255.255.255.0 or any other subnet mask such as 255.255.0.0 etc. Instead you create a CIDR notation as per the examples above.

So what subnet mask does /16, /24, /26 etc refer to and how do we work out the subnet mask by looking at two digit numbers such as /24 /16 and so on? Well, each number refers to a different subnet mask. A few examples below,

/16 refers to: 255.255.0.0
/24 refers to: 255.255.255.0
/26 refers to: 255.255.255.192

To work out CIDR notation, we need to understand that IP’s are structured in numbers of either 0 or 1. Yes, may be confusing but let’s break this down further,

Let’s take subnet mask 255.255.0.0 as an example. IP addresses include 4 octets and each octet (under the hood) makes up 8 bits, so the above mask would look like this in binary,

11111111111111110000000000000000
25525500

Because the last two octets are not activated, we leave them as zero’s.

So how do we work out the CIDR notation from the above? count the 1’s. We have 8 1’s in the first octet and 8 1’s in the second, so that’s a total of 16, therefore, the CIDR range would be /16

Let’s try another one,

11111111111111111111111100000000
2552552550

What is the CIDR notation for the above? count the 1’s?

Yes, you got it. It’s /24

You may be thinking how do I work out the number 255 and where does the number 255 come from? Yes we understand that 1 = activated and 0 = not activated, but how do we come to a number of 255?

First of all, we need to understand where 255 comes from and how it’s calculated. To work this out, we need to visit the binary table. The binary table starts with 1 and ends with the number 128 as below,

1286432168421
Binary table

A task for you, what number do you get if you add all of the numbers above? 255, right?

So if we go back to the example from earlier (see below), 8 1’s in the first octet add up to 255 because we have activated all digits. The digits in the second octet have also been activate which total 255. The third and fourth octets have not been activated, therefore, they remain as zero’s.

111111111111111100000000000000
25525500

The result is a /16 CIDR notation because we add up all the ones from octets one and two.

ok, so you now understand where the number 255 comes from. What about a mask of,

255.255.255.192

How would you work this out?

We need to revisit the binary table again, I have copied it below,

1286432168421
Binary table

We use the binary table to retrieve the number of 192. Starting from the left of the binary table, we have 128 and we know that 128 on its own does not make up 192. However, if we add the numbers from the binary table 128 + the next number 64, we get 192, see below.

1286432168421
11000000


Therefore, we activate two digits in the fourth octet as per the below.

11111111111111111111111111000000
255255255192

What is the CIDR notation for the above? add up the 1’s and you get a /26,
8 + 8 + 8 + 2 = 26

First octet: 255 – we add up all numbers from the binary table to get a maximum of 255

Second octet: 255 – we add up all numbers from the binary table to get a maximum of 255

Third octet: – we add up all numbers from the binary table to get a maximum of 255

Fourth octet: 192 – This time we only need to add the first two numbers from the binary table (128 +64), therefore activating two digits 11000000

I hope this helps. If you have any questions/feedback please feel free to comment below. Thank you 🙂

Useful Azure Resources

Reading Time: 7 minutes


New to Azure

Labs

  • Azure Network Security Workshop Labs: These labs are a selection of the demos used by internal teams at Microsoft.

  • Student Security Operations Center (SOC) Program Foundations Training
    This 3-hour training is designed to prepare upper high school and higher education students with the hands-on experience and practical knowledge needed to actively contribute to a Security Operations Center (SOC) at their school or institution.

  • Applied Skills Credentials (Announced October 2023): Applied Skills Credentials is a new verifiable credential that validates that you have the targeted skills needed to implement critical projects aligned to business goals and objectives. At the time of writing, there are 30 individual credentials available for you take for free in a lab based and open book setup. Upon passing you’ll receive a globally recognised certification which you can add to your LinkedIn profile or CV.

  • Free Azure Trial
    Sign up for the Azure free trial to get $200 in credit for 30 days, plus enjoy 12 months of free access to 20+ popular services and 65+ services that are always free—with no upfront commitment and spending protection. Great for getting started and practicing in Azure.


Exam preparation resources

  • Preparing for a Microsoft Certification by Sarah Kong
    In this blog post, Sarah Kong (Microsoft Technical Trainer) will guide you through the simple, three-step study process that she recommends read (understand the materials), do (learn experientially), and test (check your knowledge).

  • What to expect on your Microsoft exam by Liberty Munson
    Join Liberty Munson, as she talks about preparing for and taking a Microsoft technical exam.

  • Exam Readiness Zone
    Join experts as they provide tips, tricks, and strategies for preparing for a Microsoft Certification exam. The exam prep videos will help you identify the key knowledge and skills measured on the exam and how to allocate your study time.

  • Free Practice Assessments
    Are you preparing for a Microsoft Certification exam? Check out these Practice Assessments on Microsoft Learn, a free exam preparation resource that allows you to assess your knowledge and fill knowledge gaps so that you are better prepared for your certification exam.

  • Microsoft Exam FAQ
    Find out how Microsoft exams are structured

  • Microsoft Exam Sandbox
    Are you new to Microsoft Certification exams? Not sure what to expect? We have just the thing to help you become familiar with the question types that you may see on the exam, how to navigate the user interface, and much more.

  • Course Blueprints by Ilan Nyska
    The Course Blueprint is a comprehensive visual guide to the Azure ecosystem, integrating all the resources, tools, structures, and connections covered in a course into one inclusive diagram. It enables students to map out and understand the elements they’ve studied.

  • Applied Skills Credentials (Announced October 2023): Applied Skills Credentials is a new verifiable credential that validates that you have the targeted skills needed to implement critical projects aligned to business goals and objectives. At the time of writing, there are 30 individual credentials available for you take for free in a lab based and open book setup. Upon passing you’ll receive a globally recognised certification which you can add to your LinkedIn profile or CV.


Learning resources

  • Microsoft Learn
    Microsoft Learn is a free, online training platform that provides interactive learning for Microsoft products and more.

  • Free Azure E-books
    Deepen your understanding of cloud computing with analyst publications, guides, and infographics for technical professionals and business leaders.

  • List of Azure Blogs
    A list of Azure Blogs written by people supporting the technical community.

  • Channel 9/Learn Live
    Presenting Microsoft Learn content Live. Every episode Microsoft choose a Learn module and work through it. They pull in guests to give you extra commentary from experts and sometimes even the engineers who built it. Join and ask questions, live!

  • Azure Friday
    Join Scott Hanselman, Donovan Brown, or Lara Rubbelke as they host the engineers who build Azure, demo it, answer questions, and share insights.

  • Azure Tuesday
    Corey Sanders answers your questions about Microsoft Azure – Virtual Machines, Web Sites, Mobile Services, Dev/Test etc. If you have a question, Corey will find the answer!

  • Azure Blog
    Stay up to date with the latest Azure news via the Azure Blog

  • Microsoft Learning Rooms
    A space to find connections with experts and peers. Facilitated by Microsoft Learn experts from Microsoft and from the technical community outside of Microsoft. Learning rooms are designed to offer you a dedicated and safe environment where you can directly engage with an expert and dive deep into topic-specific questions via asynchronous discussions and virtual sessions.

  • Plural Sight
    Pluralsight offers courses on everything “Azure” – from cloud application development, to cloud infrastructure, to cloud security and much more.

  • Udemy
    Udemy is an online learning and teaching marketplace with over 185000 courses and 49 million students. The site includes a large number of Azure related training, free and courses at affordable rates.

  • A Cloud Guru
    A Cloud Guru is an online learning platform, now part of Pluralsight, that specialises in hands-on cloud computing training and certification prep for AWS, Azure, and Google Cloud.

  • O’Reilly Learning
    O’Reilly Learning is a comprehensive online platform offering live training, expert-led courses, books, videos, and interactive labs to help individuals and teams build in-demand tech and business skills.

  • LinkedIn Learning
    Training courses on LinkedIn Learning provide you with the skills you need, from the fundamentals to advanced tips.

  • Azure Community Support (Forums)
    Ask your Azure technical questions, find answers, and get Azure support provided by Microsoft engineers, community experts, and validated by customers.

YouTube Content

  • Microsoft Azure YouTube
    Learn about the latest products & solutions, watch training demos, and discover technical insights relevant to you. Invent with purpose with Microsoft Azure.

  • Microsoft Mechanics
    Mechanics is Microsoft’s official video series for IT Pros, Solution Architects, Developers, and Tech Enthusiasts.

  • John Savill’s Technical Training
    A curated set of free learning videos from John Savill and other free resources to help you master Azure. (Not a Microsoft channel)

  • Andy Malone
    Andy, an MVP (Microsoft Most Valuable Professional) provides free YouTube content related to Microsoft 365, Azure, Windows 365, SharePoint, Exchange Online, Microsoft Teams and more.

  • Merill Fernando
    Videos covering all things Entra ID

  • Thomas Maurer
    Channel run by Thomas Maurer covering Microsoft Azure related content.

  • IamITGeek
    Channel run by Shabaz Darr, who shares free content about Microsoft technologies.

  • Dean Ellerby
    A mixture of Microsoft Intune Training Content and Microsoft Security Training Content.

  • Peter Rising
    The content includes demos, deep dives, tips and tricks, and exam guides.

  • Travis Roberts
    Microsoft MVP Travis Roberts runs a YouTube channel where he provides free Azure content.

  • Azure Academy
    Dean Cefola (Principle Fast Track Azure engineer) provides free Azure content via his YouTube channel Azure Academy.

  • Adam Stuart
    Adam, a Principal Specialist (Azure Networking at Microsoft) publishes free content related to Azure Networking on his personal YouTube channel.

  • Microsoft Trainer Community Channel
    Microsoft Trainer Community YouTube channel


Useful links/tools

  • Azure global infrastructure experience
    A 3D interactive adventure to experience the reach of the sustainable, trusted infrastructure of Microsoft Azure’s cloud platform.

  • Azure Updates
    Get the latest updates on Azure products and features to meet your cloud investment needs. Subscribe to notifications to stay informed.

  • Azure Status
    View issues that might be impacting your services

  • Microsoft Azure Twitter
    The official Twitter account for Microsoft Azure. Follow for the latest news from the Azure team and community.
  • Azure Quickstart Templates
    Deploy Azure resources through the Azure Resource Manager with community contributed templates to get more done. Deploy, learn, fork and contribute back.

  • Azure Charts
    Live visual exploration environment for Azure Cloud + ecosystem (non-Microsoft site)

  • Azure Speed Test
    Measuring the latency from your web browser to the Blob Storage Service in each of the Microsoft Azure Data Centers. The latency times are indicative only, and do not represent the maximum performance achievable from Microsoft Azure. Use this website purely as a tool to gauge which Azure Data Center could be the best for your location. (Non-Microsoft site)

  • Azure SLA
    Service-level agreements (SLAs) describe Microsoft’s commitments for uptime and connectivity

  • Azure Calculator
    Calculate your estimated hourly or monthly costs for using Azure.

  • Total Cost of Ownership (TCO) Calculator
    Estimate the cost savings you can realize by migrating your workloads to Azure

  • Azure Architecture Center
    Guidance for architecting solutions on Azure using established patterns and practices.

  • Azure architecture icons
    On this page you will find an official collection of Azure architecture icons including Azure product icons to help you build a custom architecture diagram for your next solution.

  • Cloud Adoption Framework
    Proven guidance and best practices that help you confidently adopt the cloud and achieve business outcomes.

  • Microsoft Azure Well-Architected Framework
    The Azure Well-Architected Framework is a set of guiding tenets that can be used to improve the quality of a workload.

  • Azure subscription and service limits, quotas, and constraints
    This document lists some of the most common Microsoft Azure limits, which are also sometimes called quotas.

  • Azure Migrate
    Get all the Azure migration tools and guidance you need to plan and implement your move to the cloud—and track your progress using a central dashboard that provides intelligent insights.

  • Azure Site Recovery
    Deploy replication, failover, and recovery processes through Site Recovery to help keep your applications running during planned and unplanned outages.

  • Ready to use Entra ID Templates
    Use these customisable posters, training, stickers, and email templates to roll out or communicate Azure Active Directory features in your organisation.

  • cmd.ms
    Are you tired of clicking around in Microsoft portals to get to a blade? Use the power of your browser’s address bar to quickly get to your favorite blade in Azure, Microsoft 365, Entra ID, Intune…

  • Azure Diagrams
    The Architecture Advisor tool enables you to design diagrams in a collaborative manner and provides guidance on which services can be integrated and when they should be utilized in your architecture.

  • Identity PowerToys
    idPowerToys is a collection of mini-apps for Microsoft Entra Azure Active Directory.

    App 1 Conditional Access Documenter: Share you policies with security teams and stakeholders without giving admin access to Azure Active Directory.

    App 2 Azure Active Directory Mind Map: The Azure Active Directory Mind Map is a visual representation of the Azure Active Directory service. It is a great way to learn about the Microsoft Identity platform and how it works.

  • Maester
    Maester comes with a collection of ready to use tests to help you get started with validating your Azure tenant’s security configuration.

  • Entra News
    With over 10,000 subscribers, Entra.News is the go-to newsletter for the latest updates & expert insights on Microsoft Entra. Curated from top sources like Microsoft & MVPs, it’s trusted by IT Pros & enterprise security teams worldwide to stay ahead in identity & access management.

  • 365 Maps – A collection of Microsoft 365 licensing diagrams to help you understand Microsoft Azure and 365 licensing

  • Microsoft Graph Explorer – Microsoft Graph Explorer is useful for developers who want to explore the capabilities of Microsoft Graph and test their app scenarios. Microsoft Graph is a unified API endpoint that provides access to data and intelligence from Microsoft 365 services such as Outlook, OneDrive, Teams, SharePoint, and more. Use Graph Explorer to try the APIs on the default sample tenant to explore capabilities, or sign in to your own tenant and use it as a prototyping tool to fulfill your app scenarios.

  • jwt.ms – this is a web application that allows you to enter a JSON Web Token (JWT) and view its decoded contents. This should be used for validation and debugging purposes only, developers can decode JWTs using this site.

  • IDFix – The IdFix tool provides you the ability to query, identify, and remediate the majority of object synchronisation errors in your Window’s Server AD forests in preparation for deployment to Microsoft 365/Entra ID synchronisation.

  • Microsoft 365 Developer Program – Join the Microsoft 365 Developer program and get access to 25 Entra ID P2 licenses. Visit the link for further details.
    Update: new registrations are not being accepted at the moment

  • Visual Subnet Calculator (Azure Edition)
    Plan your virtual network on Microsoft Azure.



If you know of any useful resources, please get in touch or leave a comment below. Thanks

Note: This is a personal blog. Views are mine and not that of my employer.

Azure Kubernetes Service – Azure Managed vs Customer managed

Reading Time: < 1 minute

Azure Kubernetes Service (AKS) simplifies deploying a managed Kubernetes cluster in Azure by offloading the operational overhead to Azure. As a hosted Kubernetes service, Azure handles critical tasks, like health monitoring and maintenance.

Since Kubernetes masters are managed by Azure, you only manage and maintain the agent nodes. Therefore, Azure Kubernetes Service is free. You only pay for the agent nodes within your clusters, not for the masters.

Here is a simplified diagram providing an overview of what Azure Manage and what the customer manages.

Additional learning resources
1. A Kubernetes story: Phippy goes to the zoo

2. The Illustrated Children’s Guide to Kubernetes

3. Introduction to Azure Kubernetes Service – Training | Microsoft Docs

4. Kubernetes Learning and Training | Microsoft Azure

5. Kubernetes Learning Path

6. Kubernetes for the Absolute Beginners – Hands-on | Udemy

7. Learning Azure Kubernetes Service (AKS) by Richard Hooper (MVP)

8. Quickstart: Deploy an AKS cluster by using the Azure portal – Azure Kubernetes Service | Microsoft Docs

9. Best practices for AKS business continuity and disaster recovery – Azure Kubernetes Service | Microsoft Docs

How to use Visual Studio (MSDN) credits in a Microsoft 365 Developer tenant

Reading Time: 4 minutes

Important Note: This blog post was created for the purpose of moving Visual Studio subscription credits to a Microsoft 365 developer tenant and should not be used for tenants holding production workloads without planning.


If you were provided with a Visual Studio subscription (previously MSDN subscription) as a Microsoft Certified Trainer, by your employer, or provided a subscription for being a Microsoft MVP, you’ll know that you are entitled to a certain amount of credit per month to build resources in Azure. However, the subscription provides Azure AD Free licenses, not allowing you to benefit from features such as Azure Dynamic Groups, Azure PIM and a number of other awesome features that come with Azure AD P1/P2 licenses.

Did you know that as a developer you can sign up for a free 90 day renewable trial of a 365 Developer Subscription tenant including 25 Microsoft 365 E5 licenses to prototype apps and solutions at the following link Join the Microsoft 365 Developer Program today?

Note: 365 Developer account cannot to be utilised for production usage.

No Azure credits are provided in the 365 developer tenant, therefore, you cannot build Azure resources, but you can utilise the 365 E5 licenses which include Azure AD P2 licenses for development purposes.

An image from the Microsoft website displaying the benefits of a free Microsoft 365 E5 sandbox environment. Details also listed below this image,

What’s included in a Free Microsoft 365 E5 instant sandbox?
Cut your configuration time from days to seconds. Be your own administrator and prototype apps and solutions on your fully pre-provisioned sandbox subscription.

  • Includes 25 user licenses for development purposes
  • Preconfigured for sideloading Teams apps
    Fully loaded sample data with 16 sample users, user data, and content to help you model your solutions.
  • Easy access to pre-provisioned core Microsoft 365 workloads and capabilities (Windows not included), including:
    – All Office 365 apps
    – Everything you need for Power Platform development
    – Office 365 Advanced Threat Protection
    – Advanced analytics with Power BI
    – Enterprise Mobility + Security (EMS) for compliance and information protection
    – Azure Active Directory for building advanced identity and access management solutions

    More info at: Join the Microsoft 365 Developer Program today

Ok, so we are aware of the Visual Studio subscription (previously known as a MSDN subscription). We know that the Visual Studio Subscription includes an amount of credit per month, however, does
not include Azure AD P2 licenses. We also know that the 365 Developer subscription includes 25 Microsoft 365 E5 licenses (for development purposes) which includes Azure AD P2 licenses but does not include credits for building Azure resources. The result, we have two separate tenants, the Visual Studio subscription allows us to build Azure resources and the other for 365 development purposes. This could be an inconvenience as in my case I wanted to be able work from the one tenant without having to switch between tenants, such as switching from Visual Studio subscription to the 365 Developer tenant when required.

Did you know you can move the Visual Studio subscription to your Microsoft 365 developer tenant, allowing you to make use of the credits to build resources and the 25 365 E5 licenses within the same login, no need to switch from one tenant to another and becomes so much more convenient.

In this blog post, I go through the process of moving my Visual Studio subscription credit to a 365 Developer tenant. Here goes,

Invite user from Visual Studio Subscription to 365 Developer tenant steps

1) Login to your Microsoft 365 Developer tenant at portal.azure.com

2) Launch Azure Active Directory

3) Click to create a new user and click invite external user.

Image from Azure AD displaying option to invite user

4) Enter the email address for an account located on your Visual Studio Subscription. In my case I invited the account from my Visual Studio subscription that I use to login to the Azure Portal. I granted the invited guest the global administrator role.

5) Check and accept the invite when it appears in your inbox

How to check Microsoft 365 Developer Tenant is listed in Visual Studio Subscription

6) Once you’ve accepted the invite, login to you Visual Studio tenant, click Azure AD, click overview, and then click manage tenants.

screenshot of the Manage Tenants option available in Azure Active Directory

7) Click refresh, your Microsoft 365 Developer tenant should be listed

How to change Azure Visual Studio subscription to 365 Developer tenant

8) Next, whilst still in your Visual Studio subscription, search and click subscriptions

9) Click on your Visual Studio Subscription

Important Note and reminder before continuing: This blog post was created for the purpose of moving Visual Studio subscription credits to a Microsoft 365 developer tenant and should not be used for tenants holding production workloads.

10) Click the option change directory

11) Select the 365 developer subscription from the drop down and click change.

12) That’s it for now. This process can take up to two hours to complete.

13) Finally, if you wish to deploy resources within the subscription, grant the guest account (guest email address added at step 4) owner permissions to the subscription.

A short blog post, but I hope it was useful and allows you to be more productive when using your Visual Studio subscription and Microsoft 365 Developer tenant.