Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Pragmatic Microservices with C# and Azure

You're reading from   Pragmatic Microservices with C# and Azure Build, deploy, and scale microservices efficiently to meet modern software demands

Arrow left icon
Product type Paperback
Published in May 2024
Publisher Packt
ISBN-13 9781835088296
Length 508 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Christian Nagel Christian Nagel
Author Profile Icon Christian Nagel
Christian Nagel
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Part 1: Creating Microservices with .NET FREE CHAPTER
2. Chapter 1: Introduction to .NET Aspire and Microservices 3. Chapter 2: Minimal APIs – Creating REST Services 4. Chapter 3: Writing Data to Relational and NoSQL Databases 5. Chapter 4: Creating Libraries for Client Applications 6. Part 2: Hosting and Deploying
7. Chapter 5: Containerization of Microservices 8. Chapter 6: Microsoft Azure for Hosting Applications 9. Chapter 7: Flexible Configurations 10. Chapter 8: CI/CD – Publishing with GitHub Actions 11. Chapter 9: Authentication and Authorization with Services and Clients 12. Part 3: Troubleshooting and Scaling
13. Chapter 10: All About Testing the Solution 14. Chapter 11: Logging and Monitoring 15. Chapter 12: Scaling Services 16. Part 4: More communication options
17. Chapter 13: Real-Time Messaging with SignalR 18. Chapter 14: gRPC for Binary Communication 19. Chapter 15: Asynchronous Communication with Messages and Events 20. Chapter 16: Running Applications On-Premises and in the Cloud 21. Index 22. Other Books You May Enjoy

Pushing images to the ACR instance

The ACR instance is ready, and we created Docker images in the previous chapter – now, let’s publish the images to this registry.

After you’ve logged in to Microsoft Azure (using az login), to log in to the ACR instance, you can use az acr login. Make sure to use the name you defined with the ACR instance:

az login
az acr login -n <the name of your azure container registry>

This command needs to have Docker Desktop installed and running.

Note

Referencing the ACR instance using the Azure CLI, just the name of the registry is needed (such as codebreakertest). The docker and dotnet commands support different registries, thus with these commands, the complete domain name is needed, such as codebreakertest.azurecr.io.

Next, let’s build the images. With the game APIs, we created a Dockerfile in the previous chapter. With the Windows terminal, make sure to set the current directory to the ch06 folder and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime