Skip to Content
使用 Microsoft Power Platform 构建解决方案
book

使用 Microsoft Power Platform 构建解决方案

by Jason Rivera
May 2025
Intermediate to advanced
352 pages
5h 4m
Chinese
O'Reilly Media, Inc.
Content preview from 使用 Microsoft Power Platform 构建解决方案

第 12 章 Power Automate 和Azure 认知服务

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

在 Power Platform 通过 AI Builder 和 Power Virtual Agents 提供人工智能功能之前,微软推出了 Azure 认知服务。Azure 认知服务为开发人员提供了一种简单的方法,让他们无需了解创建智能服务背后的复杂性,即可将人工智能引入其解决方案。这些服务分为几个类别:语音、语言、视觉、决策和 OpenAPI。

例如,语音服务允许您 执行将语音转录为文本、将文本转换为语音以及语音翻译等任务。语言服务可以识别文本中的术语,或提供情感评分,帮助你判断语句是正面还是负面等。视觉服务包括计算机视觉(Computer Vision)和人脸 API,前者可以让你分析图像和视频,后者可以检测图像中的人物,识别他们脸上的情绪等。这些服务在不断变化和发展,虽然许多可用的功能都在 AI Builder 等工具中,但有些时候你可能想用 Azure 认知服务来代替。例如,如果您没有 AI Builder 许可证,但您的组织已经设置了一个或多个认知服务,您仍然可以在 Power Automate 中利用这些解决方案。

在下一节中,我们将从高层次介绍设置这些服务所涉及的内容,包括您在 Azure 中需要的某些权限。 服务设置完成后,您需要管理员提供一些信息,包括密钥和端点;然后,您就可以构建具有人工智能功能的流了。

一般认知服务设置

要在 Azure 中创建认知服务,您需要获得各种角色和权限,许多管理员和一些专业开发人员会拥有这些角色和权限,但大多数高级用户不会。考虑到这一点,我们将在本节中简要介绍认知服务的设置过程,但您应该注意,您执行这些步骤的能力会有所不同。如果你没有 Azure 订阅权限,微软提供了免费试用的选项。我将引导你完成创建语言服务实例的过程,以便我们在下一节中将其用于情感分析解决方案。创建其中一个服务后,你会发现创建其他服务所需的步骤几乎完全相同。

如果您有 Azure 订阅,请登录Azure 门户并在页面顶部的搜索栏中搜索 "认知服务"。导航到 "认知服务 "页面后,你会看到一系列卡片,上面有每项服务的简要说明,类似于图 12-1。在本例中,我们将使用语言服务。要开始使用,请单击卡片底部的 "创建 "按钮。

图 12-1. Azure 认知服务

单击 "创建 "后看到的第一个页面将提供有关服务功能的更多细节。左侧是可用的默认功能,右侧可以选择其他功能(见图 12-2)。如果想测试自定义功能,可以选择安装,但就我们的目的而言,语言服务的默认功能已经足够。单击 "继续创建资源 "按钮继续。

图 12-2. 默认和自定义功能

接下来,你将进入 "基础知识 "页面,如图 12-3 所示,在这里你将提供大多数 Azure 服务的标准信息。你将选择一种订阅类型,以及一个现有的或新的资源组。您还将选择服务所在的区域,以及名称和定价模式。

图 12-3. ...
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

学习 React,第二版

学习 React,第二版

Alex Banks, Eve Porcello
What Successful Project Managers Do

What Successful Project Managers Do

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

Perl Best Practices

Damian Conway

Publisher Resources

ISBN: 9798341659391