Microsoft Build 2021 Global virtual event
I Hope everyone had a Great Microsoft Build 2021 Online Conference this week. Microsoft announced a lot of new features and Hybrid Cloud Solutions at Build 2021 🙂 If you missed this Awesome Build 2021 event, you can watch the highlights on demand here.
DevOps and developers are increasingly using microservices-based architectures with containerized applications for agility and flexibility. Azure Arc extends the single control plane from Azure to enable you to build apps consistently across hybrid and multi-cloud environments. With this information I was thinking, can I connect Microsoft Azure Arc Services to my Surface Book 3 with Windows 10 Preview Insiders Build 21390 and Docker for Windows with Kubernetes Cluster 1.19.7 active?
IMPORTANT: The following step-by-step guide is for testing purpose only.
Installing Docker for Windows with Kubernetes Cluster on Windows 10
First you need to have Docker for Windows 10.
Your Windows machine must meet the following requirements to successfully install Docker Desktop.
WSL 2 backend
- Windows 10 64-bit: Home, Pro, Enterprise, or Education, version 1903 (Build 18362 or higher).
- Enable the WSL 2 feature on Windows. For detailed instructions, refer to the Microsoft documentation.
- The following hardware prerequisites are required to successfully run WSL 2 on Windows 10:
With docker desktop for Windows you can switch between Windows Containers and Linux Containers. When you want to have a Kubernetes Cluster on your Windows 10 device active you have to switch to Linux Containers in the taskbar like this :
It’s now active for Linux Containers. (Default)
Right Click on the Docker tray icon and go to Settings.
Then go to Kubernetes to enable your Cluster locally on your Windows 10 Device.
When you apply it take some minutes for the installation.
When you see the Kubernetes icon on green, then your Cluster is running.
When you do a lot of DevOps work you use Microsoft Visual Studio Code for Free, because here you can see your Kubernetes Cluster and try your own code or Apps.
Kubernetes Cluster is running locally on your Windows 10 device.
Installing Microsoft Azure Arc Agent
The next step is to install the Microsoft Azure Arc agent on your Windows 10 device.
Login in your Azure Subscription, if you don’t have one you can start here
Search for Azure Arc in your subscription.
Click on Servers and Click on Add.
Click on add a Single Server.
Click on Generate Script.
Prerequisites for the Azure Arc Agent.
Select your Azure Subscription and Resource Group
Choose your Region.
Operating System is Windows. ( your Windows10 device)
Click on Next.
You can add your TAG here.
More information about Azure Tags
Here you can download the Installation script or do a Copy of the Azure Arc Agent.
Open PowerShell ISE in Administrator mode.
Paste the Azure Arc Agent PowerShell Script.
Click on run.
When you see this message open your browser and go to
Copy the Code in the last rule of PowerShell here and click on Next.
Enter your Azure Subscription account here and click on Next.
Connection is made with Azure you can close this screen.
Azure Arc Agent is connect with your Windows 10 Device.
Here you see my Azure Arc Enabled Machine.
Now your Windows 10 device, my Surface Book 3 is connected with Microsoft Azure Arc Services.
Register a Kubernetes Cluster with Azure Arc
The last step is to register your kubernetes Cluster with Microsoft Azure Arc Services.
Click on kubernetes Clusters on the left.
Click on Register a Kubernetes Cluster with Azure Arc.
The prerequisites to add your Kubernetes Cluster to Azure Arc
Select your Azure Subscription
Select your Resource Group
Give your Cluster a Name in Azure
Are you behind a Proxy Server? Yes or No
Here you can add your TAG to the Kubernetes Cluster.
Microsoft Azure CLI active with Helm 3
Copy the Bash commando into your Azure CLI like here.
This operation might take a couple of minutes.
Done, the Kubernetes Cluster is added to Azure Arc.
Dockkube was successfully connected to Azure.
Kubernetes Cluster with Azure Arc
Now you Have connected your Kubernetes Cluster to Azure Arc Services, you can start exploring the extensions :
Kubernetes Cluster – Azure Arc extensions
GitOps on your Kubernetes Cluster via Azure Arc.
More Features like Security, Monitoring, Automation :
Features for Kubernetes in Azure Arc Services.
Here you see in Visual Studio Code your Azure-Arc Helm Release.
“Learn how to write once and run anywhere using your preferred cloud-native application services. Ensure governance, compliance and security for your deployments, all through a single pane of glass management experience in Azure.”
With Microsoft Azure Arc Services you bring Azure Cloud Technology anywhere for your Apps, Containers, microservices.
I Hope this is a first start for exploring and testing your Hybrid Cloud solution. Wish you a lot of fun and happy coding 😉