- Implementation of .NET Core Net API
- Dockerization of utility
- Deploy utility picture on Azure Container Registry
- Run utility picture inside Azure Container Occasion
- Within the software program world, all of us need to automate issues and scale back handbook work associated to the deployment and administration of various utility parts, in that case, azure supplies many companies for that like azure container registry and container occasion as I’ve proven beneath diagram.
- Azure container registry shops personal docker photos and manages the identical.
- Azure container occasion is a managed service that helps us to run a container immediately on the azure cloud with out requiring every other infrastructure like a digital machine (VM) and like that.
- Additionally, it helps to automate our utility deployment by utilizing CI/CD instruments wherein we configure some automation steps which construct and deploy our utility docker picture contained in the container registry and after that, we will rapidly run that picture contained in the azure container occasion in an remoted surroundings very effectively.
Implementation of .NET Core Net API
Create a brand new .NET Core 7 Net API
Configure your utility
Present further data
Add docker help inside the applying utilizing Visual Studio
Run the applying utilizing the docker (Observe: Make certain Docker Desktop is put in and operating in your machine)
Deploy utility picture on Azure Container Registry
Login on Azure Portal
Create Useful resource Group
After that, Create a brand new Azure Container Registry
Subsequent, right-click on the applying resolution and click on on publish
Click on on Docker Container Registry and press Subsequent
Choose Azure Container Registry and Click on Subsequent
After that, choose the subscription and container registry which we created earlier and click on on end
Subsequent, click on on Publish and it’ll add a docker picture on the azure container registry
Right here you’ll be able to see utility picture particulars contained in the repository part of our container registry on the Azure portal
Run utility picture inside Azure Container Occasion
Create Container Occasion
Configure container registry and some particulars associated to that.
(Observe: Generally we obtained points whereas configuring the container registry and we have to present admin person entry for that go to the container registry and contained in the entry key part and allow the admin person as I proven beneath)
After that, we will see Public IP utilizing that we will in a position to entry our utility
Open the browser and hit the URL
Right here we focus on the Containerization of functions utilizing Azure container registry and occasion. Additionally, the step-by-step like tips on how to create the useful resource and run it on Azure.