Skip to Content
微软认证Azure开发工程师(AZ-204)考试指南
book

微软认证Azure开发工程师(AZ-204)考试指南

by Adora Nwodo
August 2025
Beginner to intermediate
360 pages
5h
Chinese
O'Reilly Media, Inc.
Content preview from 微软认证Azure开发工程师(AZ-204)考试指南

第 13 章 Azure 中的开发人员实践

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

作为开发人员,编写代码只是工作的一部分。我们还需要考虑如何在云中构建、部署和维护应用程序。AZ-204 考试的重点是在 Azure 中开发解决方案,了解开发人员实践是构建高效、可扩展性和安全性应用程序的关键。Azure 提供了各种工具和服务,可帮助开发人员自动执行任务、监控性能并确保工作负载的安全。无论您使用的是 Web 应用程序、API 还是无服务器功能,了解如何有效使用这些服务对于云开发都至关重要。

在本章中,我们将探讨与 AZ-204 相关的开发人员工具和服务。我们将从用于管理云资源的 Azure CLI、PowerShell 和 SDK 开始。在此之后,我将介绍一个名为 Zuta 的应用程序,并以此为基础讲述用于应用程序开发的 Azure App Service、Functions 和 Logic Apps。这样做的目的是让你切实感受到在本书中学习到的所有理论概念,从而了解它们是如何联系在一起的。我们将深入介绍 Azure Pipelines 和 GitHub Actions 等 CI/CD 解决方案,并讨论 Azure Monitor 和 Log Analytics 的监控功能。还将重点介绍包括 Azure Key Vault 和 Entra ID 在内的安全最佳实践。本章结束时,你将对 Azure 开发人员实践有一个深刻的理解,这将有助于你准备 AZ-204 考试,并将这些概念应用到实际开发中。

简介

Cloud开发从根本上改变了我们构建和部署应用程序的方式。Azure 作为一个云平台,带来了一套独特的工具、服务和最佳实践,开发人员需要了解这些工具、服务和最佳实践,才能创建有效的云原生应用程序。当我们谈论 Azure 中的开发人员实践时,我们讨论的不仅仅是编码标准,而是构建可扩展、安全并适应不断变化的业务需求的应用程序的完整方法。

让我们从云开发中最佳实践的重要性谈起。与传统的内部部署应用程序不同,Cloud 应用程序需要处理自动扩展、对故障具有弹性并有效管理成本。一个简单的例子就是我们如何处理应用程序配置。Azure 鼓励使用 Azure App Configuration 和 Key Vault 等服务,而不是在文件中存储配置的传统方法。下面是演示这种现代方法的基本设置:

# Create a simple development environment
$  az group create 
    --name sample-resource-group 
    --location eastus

# Set up basic application infrastructure
$  az appconfig create 
    --name sample-app-config  
    --resource-group sample-resource-group  
    --location eastus 
    --sku free

这个简单的配置设置演示了 Azure 如何支持现代开发实践。开发人员可以集中管理其应用程序设置和功能标志,而不是跨多个服务器管理配置文件。

Azure 通过各种集成工具和服务为开发人员提供支持,这些工具和服务共同创建了一个全面的开发环境。将其视为一个工具箱,每个工具都有特定用途,但又能与其他工具无缝协作。例如 Visual Studio 集成、Azure DevOps ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
A Five-Step Guide to Improving Your Employer Brand

A Five-Step Guide to Improving Your Employer Brand

Kimberly A. Whitler, Richard Mosley
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9798341666177