什么是 Azure 服务的资源提供程序

资源提供程序是为 Azure 服务提供功能的 REST 操作集合。 每个资源提供程序都有一个命名空间,格式为 company-name.service-label。 本文展示了 Azure 服务的资源提供程序。 如果你不知道资源提供程序,请参阅查找资源提供程序

AI 和机器学习资源提供程序

AI 和机器学习服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.CognitiveServices 认知服务
Microsoft.MachineLearningServices Azure 机器学习
Microsoft.Search Azure AI 搜索

分析资源提供程序

分析服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.AnalysisServices Azure Analysis Services
Microsoft.DataFactory 数据工厂
Microsoft.DataLakeStore Azure Data Lake Storage Gen2
Microsoft.HDInsight HDInsight
Microsoft.Kusto Azure 数据资源管理器
Microsoft.PowerBI Power BI
Microsoft.Purview Microsoft Purview
Microsoft.StreamAnalytics Azure 流分析
Microsoft.Synapse Azure Synapse Analytics

计算资源提供程序

计算服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.AppPlatform Azure Spring Apps
Microsoft.Batch 批处理
Microsoft.ClassicCompute 经典部署模型虚拟机
Microsoft.Compute 虚拟机
虚拟机规模集
Microsoft.DesktopVirtualization Azure 虚拟桌面
Microsoft.Maintenance Azure 维护
Microsoft.Microservices4Spring Azure Spring Apps
Microsoft.ServiceFabric Service Fabric
Microsoft.VirtualMachineImages Azure 映像生成器

容器资源提供程序

容器服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.App Azure Container Apps
Microsoft.ContainerInstance 容器实例
Microsoft.ContainerRegistry 容器注册表
Microsoft.ContainerService Azure Kubernetes 服务 (AKS)

核心资源提供程序

核心服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.Addons core
Microsoft.AzureStack core
Microsoft.Capacity core
Microsoft.Commerce - 默认已注册 core
Microsoft.Marketplace core
Microsoft.MarketplaceApps core
Microsoft.MarketplaceOrdering - 默认已注册 core
Microsoft.SaaS core
Microsoft.Services core
Microsoft.Subscription core
microsoft.support - 默认已注册 core

数据库资源提供程序

数据库服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.AzureData SQL Server 注册表
Microsoft.Cache 用于 Redis 的 Azure 缓存
Microsoft.DBforMariaDB Azure Database for MariaDB
Microsoft.DBforMySQL Azure Database for MySQL
Microsoft.DBforPostgreSQL Azure Database for PostgreSQL
Microsoft.DocumentDB Azure Cosmos DB
Microsoft.Sql Azure SQL 数据库
Azure SQL 托管实例
Azure Synapse Analytics
Microsoft.SqlVirtualMachine Azure 虚拟机中的 SQL Server

开发人员工具资源提供程序

开发人员工具服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.AppConfiguration Azure 应用配置

混合资源提供程序

混合服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.AzureArcData 已启用 Azure Arc 的数据服务
Microsoft.AzureStackHCI Azure Stack HCI
Microsoft.HybridCompute 已启用 Azure Arc 的服务器
Microsoft.Kubernetes 已启用 Azure Arc 的 Kubernetes
Microsoft.KubernetesConfiguration 已启用 Azure Arc 的 Kubernetes

标识资源提供程序

标识服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.AAD Microsoft Entra 域服务
Microsoft.ADHybridHealthService - 默认已注册 Microsoft Entra ID
Microsoft.AzureActiveDirectory Microsoft Entra ID B2C
Microsoft.ManagedIdentity Azure 资源的托管标识
Microsoft.Token 令牌

集成资源提供程序

集成服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.ApiManagement API 管理
Microsoft.EventGrid 事件网格
Microsoft.EventHub 事件中心
Microsoft.Logic 逻辑应用
Microsoft.NotificationHubs 通知中心
Microsoft.Relay Azure 中继
Microsoft.ServiceBus 服务总线

IoT 资源提供程序

IoT 服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.Devices Azure IoT 中心
Azure IoT 中心设备预配服务
Microsoft.TimeSeriesInsights Azure 时序见解

管理资源提供程序

管理服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.Advisor Azure 顾问
Microsoft.Authorization - 默认已注册 Azure Resource Manager
Microsoft.Automation 自动化
Microsoft.ClassicSubscription - 默认已注册 经典部署模型
Microsoft.Consumption - 默认已注册 成本管理
Microsoft.CostManagement - 默认已注册 成本管理
Microsoft.CostManagementExports 成本管理
Microsoft.Features - 默认已注册 Azure Resource Manager
Microsoft.GuestConfiguration Azure Policy
Microsoft.ManagedServices Azure Lighthouse
Microsoft.Management 管理组
Microsoft.PolicyInsights Azure Policy
Microsoft.Portal - 默认已注册 Azure 门户
Microsoft.RecoveryServices Azure Site Recovery
Microsoft.ResourceGraph - 默认已注册 Azure Resource Graph
Microsoft.ResourceHealth Azure 服务运行状况
Microsoft.Resources - 默认已注册 Azure Resource Manager
Microsoft.Scheduler 计划程序
Microsoft.SoftwarePlan 许可证

媒体资源提供程序

媒体服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.Media 媒体服务

迁移资源提供程序

迁移服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.ClassicInfrastructureMigrate 经典部署模型迁移
Microsoft.DataBox Azure Data Box
Microsoft.Notebooks Azure Notebook
Microsoft.DataMigration Azure 数据库迁移服务
Microsoft.OffAzure Azure Migrate
Microsoft.Migrate Azure Migrate

监视资源提供程序

监视服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.AlertsManagement Azure Monitor
Microsoft.ChangeAnalysis Azure Monitor
Microsoft.Insights Azure Monitor
Microsoft.Intune Azure Monitor
Microsoft.OperationalInsights Azure Monitor
Microsoft.OperationsManagement Azure Monitor
Microsoft.WorkloadMonitor Azure Monitor

网络资源提供程序

网络服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.ClassicNetwork 经典部署模型虚拟网络
Microsoft.ManagedNetwork PaaS 服务托管的虚拟网络
Microsoft.Network 应用程序网关
Azure Bastion
Azure DNS
Azure ExpressRoute
Azure 防火墙
Azure 专用链接
Azure 路由服务器
负载均衡器
网络观察程序
流量管理器
虚拟网络
虚拟网络 NAT
虚拟 WAN
VPN 网关
Microsoft.ResourceGraph - 已注册 Azure Resource Graph

安全资源提供程序

安全服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.DataProtection 数据保护
Microsoft.KeyVault 密钥保管库
Microsoft.Security 安全中心
Microsoft.SecurityInsights Microsoft Sentinel
Microsoft.WindowsESU 扩展的安全更新

存储资源提供程序

存储服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.ImportExport Azure 导入/导出
Microsoft.Solutions Azure 托管应用程序
Microsoft.ObjectStore 对象存储
Microsoft.Storage 存储
Microsoft.StorageCache Azure HPC 缓存
Microsoft.StorageSync 存储

Web 资源提供程序

Web 服务的资源提供程序包括:

资源提供程序命名空间 Azure 服务
Microsoft.DomainRegistration 应用服务
Microsoft.SignalRService Azure SignalR 服务
Microsoft.Web 应用服务
Azure Functions

注册

在上一部分中标记为“默认已注册”的资源提供程序将自动注册到你的订阅。 对于其他资源提供程序,你需要自行注册它们。 但是,当你执行特定操作时,许多资源提供程序都会自动注册。 例如,当你通过门户或通过部署 Azure 资源管理器模板创建资源时,Azure 资源管理器会自动注册任何所需的未注册资源提供程序。

重要

请仅在准备好使用资源提供程序时注册该程序。 此注册步骤有助于在订阅中保持最低权限。 恶意用户无法使用未注册的资源提供程序。

注册不必要的资源提供程序可能会导致 Microsoft Entra 租户中出现无法识别的应用。 当你注册资源提供程序时,Microsoft 会为它添加应用。 这些应用通常是由 Azure 服务管理 API 添加的。 若要防止租户中出现不必要的应用,请仅注册所需的资源提供程序。

查找资源提供程序

若要确定用于现有 Azure 基础结构的资源提供程序,请列出已部署的资源。 指定包含资源的资源组。

以下示例使用 Azure CLI:

az resource list --resource-group examplegroup

结果包含资源类型。 资源提供程序命名空间是资源类型的第一部分。 以下示例演示了 Microsoft.KeyVault 资源提供程序。

[
  {
    ...
    "type": "Microsoft.KeyVault/vaults"
  }
]

以下示例使用 PowerShell:

Get-AzResource -ResourceGroupName examplegroup

结果包含资源类型。 资源提供程序命名空间是资源类型的第一部分。 以下示例演示了 Microsoft.KeyVault 资源提供程序。

Name              : examplekey
ResourceGroupName : examplegroup
ResourceType      : Microsoft.KeyVault/vaults
...

以下示例使用了 Python:

import os
from azure.identity import DefaultAzureCredential
from azure.mgmt.resource import ResourceManagementClient

subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
credential = DefaultAzureCredential()
resource_client = ResourceManagementClient(credential, subscription_id)

resource_group_name = "examplegroup"
resources = resource_client.resources.list_by_resource_group(resource_group_name)

for resource in resources:
    print(resource.type)

结果中列出了资源类型。 资源提供程序命名空间是资源类型的第一部分。 以下示例演示了 Microsoft.KeyVault 资源提供程序。

Microsoft.KeyVault/vaults

后续步骤

有关资源提供程序的详细信息(包括如何注册资源提供程序),请参阅 Azure 资源提供程序和类型