Automated Deployment from AKS VsCode Extension
Skills:
CI/CD Pipelines80%
Key Takeaways
The Automated Deployment feature in the AKS VS Code Extension streamlines deployment of containerized applications to AKS clusters
Full Transcript
and we can select the cluster that we're going to be working with and after right clicking we can see that we have some options under automated deployments such as attach ACR to Cluster create a deployment and create a g a [Music] workflow hi and welcome to another exciting episode of openet Microsoft I am tsip an engineer in AKs team and today I'm being joined by rer who will talk about automated deployment using AKs vs code extension hi Rea welcome hey T thanks for having me so what are we talking today about the automated deployment and how the draft tool under the hood is been used for this specific feature hey T So today we're going to be discussing some new features that are really going to enhance the way that users can get their code up and running as an application without having to leave the vs code editor nice exciting so what is this feature about and how exactly this gets hooked bsvs full extension yeah so this feature is called automated deployment and we can actually go through and kind of see how I can go from just having my code or my repository and bring that all the way to a launch application inside of AKs oh wow so without leaving the vs code pretty much from your project to the deployment phase and all the other nitrative files and deployment files ready for you really do we have a demo for us yes so luckily we have this Koso air application it's a JavaScript application for at Travel booking so here I have the code in my BS code and we can actually take it through all the steps to get that application up and running so we can actually go to the AKs extension and we can select the cluster that we're going to be working with and after right clicking we can see that we have some options under automated deployments such as attach ACR to Cluster create a deployment and create a a workflow so for this first part I'm going to be discussing this attach ACR to Cluster and for the sake of time I've already gone ahead and pre-filled so essentially why this feature would be important uh for someone like myself to get my application up and running I'm going to be hosting it inside of the aure container uh registry and that is where my AKs cluster is going to be pulling this image so essentially I'm Pro uh this is going to be providing the functionality to my cluster to be able to pull that image and here we simply just provide some details about the ACR as well as the cluster and we can easily go ahead and attach that and provide that privilege and under the hood this is being done by utilizing the Azure identity SDK that's amazing so instead of using uh the CLI system we are using the sdks to make the call and round trip to hook it up that's amazing and these are the common challenges which developers actually go through in their normal development cycle so I can see how this could be very advantageous so post this what exactly happens right so now we've provided that ACR pull privilege now we actually have to go ahead and create the deployment files that we're going to be using so the second option provided here under automated deployments is going to be this create a deployment we can actually see the screen here so with the screen we just have to provide some details uh the subscription we're going to be using ACR uh some image details and where we would want these uh deployment files here we have these options of manifest Helm and customize as well as some application names so by just providing these details we can go ahead and we can create uh these deployment files that we're going to be using uh to get our application up and running and for example I can go ahead and create this deployment and here we can see that the deployment files were created and we're also provided with some next steps and how this is being done under the hood this is actually leveraging the draft binary to accomplish this so essentially we're crafting a command uh to provide to draft and draft is responding with us with these necessary deployment files that's awesome so it's PR much doing all the heavy LIF for the user without leaving their editor experience and letting it generate via this extension I see it's doing whole lot of things behind the sales brilliant so at this point I think we are going to have a bunch of manifest files by now yes exactly so now we we currently have these manifest files and the user can go ahead and use these right out of the box how how they would like U but they can also go ahead and take this another step further they can actually go ahead and use these deployment files to create an Automation in the form of a GitHub workflow in which every time that there's a change to their code inside their repository it will automatically go ahead build an image and deploy that image to an AKs cluster that's Brant so taking a very whole pain of even going outside and finding finding about the deployment the deployments are already ready ready to be pushed into the code and either user can change it according to their need or when Thea it will work out of box exactly so I can see where you're going now you're going to push it to your GLE and I'm very excited about what happens next perfect we can actually go ahead and take a look at how that would look so as a the third option here under automated deployments we have this create a GitHub workflow and we can actually see that screen pre-filled here so here uh this is that creates a dra a draft to get a workflow page and this page is going to allow us to create that file that will create that GitHub workflow but first before uh to get this page up and running we're going to need a Docker file but luckily we also have the functionality inside the extension to create a Docker file for my project so here I'm just putting the location of where I want the docker file the uh language the version as well as the application Port I can go ahead and create nice so I've gone ahead and created that and you see that we're prompted with some next steps so now we can uh continue on our journey with creating that GitHub workflow here we're just providing some uh details as well as the workflow name the G repository in which we uh would like the workflow and as well as some necessary details such as our Docker file where we're going to be building a little bit about our container registry and our cluster and uh we uh just provide these deployment files so here I can simply go ahead and create that workflow file and we can actually take a look at what this workflow file looks like so this workflow file is going to consist of two parts it's going to consist of a build section as well as a deploy section and this will get triggered anytime there's a change to that repository so from here I can just simply go ahead and push all the current changes that I have in my code up into my GitHub repository wow this is simple and I really like the way it is guiding throughout so that's amazing can we see any app which is getting developed on the projects you showed for new in the theing about the hos s yeah for sure let's go ahead and take a look at what this workflow looks like inside of GitHub and also the application it's awesome so here we actually have that workflow that gets triggered as soon as that uh file that workflow file gets pushed into our repository as we can see we have in a build image section which is going to uh build that necessary image as well as push it to the Azure container registry that I'm utilizing and then finally that image is going to go ahead and get deployed into the AKs cluster so here we can actually see that application deployed as a fully uh functioning uh travel site that's brilliant that's amazing so right from nothing in the project to fully deployed application using the workflow without leaving your reinstalled ecosystem using EPS extension seems like a Dre come true for a lot of devops and juniors who sometimes needs to to work out the uh deployment files and workflow files so I'm sure this is going to help out a lot of devops Jers um so what are the future enhancement you're going to put through and where people can ask for new features if you want to shate that information yeah of course so in the future we're going to be uh coming out with some really nice features to finish that end to end flow um of that code all the way to the lunch of the application currently users still have to do some things on the authentication side so in the future we want to uh completely finish that flow and really streamline the process and if users would like to um would like to have some more information they can go ahead and visit the provided uh the provided page to find some more information that's amazing I'm really looking forward for some of the F future development around this feature and thank you so much for showing us the good feature which really makes sense like and develops Engineers like sampler thank you very much R here thanks SS thanks for having me [Music]
Original Description
The Automated Deployment feature in the Azure Kubernetes Service (AKS) VS Code Extension streamlines the deployment of containerized applications to AKS clusters directly from Visual Studio Code. Here's how it helps: Simplified Workflow: Instead of manually building, pushing, and deploying your container images to AKS, the VS Code extension integrates these steps into a single, easy-to-use workflow. Continuous Integration/Continuous Deployment (CI/CD): You can configure automated pipelines for deployment, allowing for continuous updates and smoother integration of changes, reducing the time from development to production. Integration with GitHub: The extension can connect with GitHub Actions to automatically trigger deployments when changes are pushed to a branch, further automating the entire process.
Chapters:
00:00 - Introduction
01:53 - Auto Deployment Demo
10:15 - Future Enhancements
Resources:
Find the latest info about the open-source Azure Kubernetes Service (AKS) Extension for Visual Studio Code project available at: https://github.com/Azure/vscode-aks-tools
📌 Let's connect:
Tatsat Mishra | https://www.linkedin.com/in/tatsat-mishra-2390b45
Reinier Cruz-Carnero | https://www.linkedin.com/in/reinierc
📝Submit Your OSS Project for Open at Microsoft https://aka.ms/OpenAtMsCFP
Subscribe to the Open at Microsoft: https://aka.ms/OpenAtMicrosoft
Open at Microsoft Playlist: https://aka.ms/OpenAtMicrosoftPlaylist
New episode every Tuesday!
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Microsoft Developer · Microsoft Developer · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Prepare for the DP-300 exam & the Azure Database Administrator Associate cert | Data Exposed
Microsoft Developer
What I Wish I Knew ... about landing a job in tech
Microsoft Developer
Igniting Developer Innovation with Vector Search
Microsoft Developer
Combining the power of vector search with Azure OpenAI then revolutionize image search with vectors!
Microsoft Developer
What I Wish I Knew ... about finding your place in tech
Microsoft Developer
Fluent UI React Insights: Accessible by default
Microsoft Developer
Signing Container Images with Notary Project
Microsoft Developer
What I Wish I Knew ... about finding your place in tech
Microsoft Developer
What programming languages does GitHub Copilot support?
Microsoft Developer
What I Wish I Knew ... about how much your job can change
Microsoft Developer
What I Wish I Knew ... about how much your job can change
Microsoft Developer
How do I become more confident about AI?
Microsoft Developer
How do I become more confident about AI?
Microsoft Developer
Performance Demos of SQL’s Intelligent Query Processing Feedback capabilities | Data Exposed
Microsoft Developer
What I Wish I Knew ... about coming to Microsoft
Microsoft Developer
What I Wish I Knew ... about coming to Microsoft
Microsoft Developer
Revolutionizing Image Search with Vectors
Microsoft Developer
Igniting developer innovation with Vector search and Azure OpenAI
Microsoft Developer
Getting Started with Azure AI Studio's Prompt Flow - Part 2
Microsoft Developer
What I Wish I Knew ... about finding my career path
Microsoft Developer
What I Wish I Knew ... about finding my career path
Microsoft Developer
Windows Terminal's journey to Open Source
Microsoft Developer
Can I trust the code that GitHub Copilot generates?
Microsoft Developer
What I Wish I Knew ... about interviewing
Microsoft Developer
What I Wish I Knew ... about interviewing
Microsoft Developer
What is the Microsoft TechSpark Program?
Microsoft Developer
SQL Server 2022: Accelerate query performance while reducing query compile time - w/ no code changes
Microsoft Developer
What I Wish I Knew ... about discovering computer science
Microsoft Developer
What I Wish I Knew ... about discovering computer science
Microsoft Developer
Call center transcription and analysis using Azure AI
Microsoft Developer
How to use Text Analytics for health in Azure AI Language
Microsoft Developer
Azure OpenAI-powered summarization in Azure AI Language
Microsoft Developer
Accelerate data labeling using Azure OpenAI and Azure AI Language
Microsoft Developer
Building a Private ChatGPT with Azure OpenAI
Microsoft Developer
What I Wish I Knew ... about how to interview
Microsoft Developer
What I Wish I Knew ... about how to interview
Microsoft Developer
Getting Started with Azure AI Studio's Prompt Flow - Part 3
Microsoft Developer
Intelligent Apps with Azure Kubernetes Service (AKS)
Microsoft Developer
Getting Started with Azure Blob Storage | Data Exposed: MVP Edition
Microsoft Developer
Chat + Your Data + Plugins
Microsoft Developer
What I Wish I Knew ... about different career paths
Microsoft Developer
What I Wish I Knew ... about different career paths
Microsoft Developer
Advanced Dev Tunnels Features | OD122
Microsoft Developer
Learn Live - Manage performance and availability in Azure Cosmos DB for PostgreSQL
Microsoft Developer
Plan your SQL Migration to Azure with confidence | Data Exposed
Microsoft Developer
What I Wish I Knew ... about social skills in a tech career
Microsoft Developer
What I Wish I Knew ... about social skills in a tech career
Microsoft Developer
All About Vectors, Search, and Function Calling in Azure OpenAI - Labor Day Special
Microsoft Developer
Introduction to project ORAS
Microsoft Developer
What I Wish I Knew ... about finding the right major
Microsoft Developer
What I Wish I Knew ... about finding the right major
Microsoft Developer
What I Wish I Knew ... about how to approach programming
Microsoft Developer
What I Wish I Knew ... about how to approach programming
Microsoft Developer
Learn Live - Scale from a single node to multiple nodes with Azure Cosmos DB for PostgreSQL
Microsoft Developer
What I Wish I Knew ... about diversity in tech #1
Microsoft Developer
What I Wish I Knew ... about diversity in tech #1
Microsoft Developer
Get started with SQL Server AGs across Windows, Linux and Container Replicas | Data Exposed
Microsoft Developer
Writing LLM Apps with Azure AI and PromptFlow
Microsoft Developer
What I Wish I Knew ... about how cool working in tech could be
Microsoft Developer
Open Source foundation models in Azure Machine Learning & optimization techniques behind the scenes
Microsoft Developer
More on: CI/CD Pipelines
View skill →Related Reads
📰
📰
📰
📰
Groovy Open source tools Worth Your Weekend
Medium · DevOps
🚀 MyZubster is Live! From Zero to Production on a VPS
Dev.to AI
MCP Ecosystem Week 30: When Your Developers' AI Tools Connect to Everything—What's in Your Allowlist?
Dev.to AI
Receipts, not labels: what cron trust hand-offs get wrong about provenance
Dev.to · Aloya
Chapters (3)
Introduction
1:53
Auto Deployment Demo
10:15
Future Enhancements
🎓
Tutor Explanation
DeepCamp AI