简体   繁体   English

Azure 资源提供者到底是什么?

[英]What exactly is an Azure Resource Provider?

What exactly is an Azure resource provider? Azure 资源提供者到底是什么?

I'm told I have to register a resource provider for my subscription before I can use a use a particular type of resource, for example to use Event Grid or Key Vault.有人告诉我,我必须先为我的订阅注册资源提供程序,然后才能使用特定类型的资源,例如使用事件网格或 Key Vault。 But, confusingly, there are resource providers and resource types and neither are well explained in Microsoft documentation.但是,令人困惑的是,有资源提供者和资源类型,在 Microsoft 文档中都没有很好地解释。 For example, Azure resource providers and types starts out by saying:例如, Azure 资源提供者和类型开始说:

When deploying resources, you frequently need to retrieve information about the resource providers and types.部署资源时,您经常需要检索有关资源提供者和类型的信息。 For example, if you want to store keys and secrets, you work with the Microsoft.KeyVault resource provider.例如,如果您想存储密钥和机密,您可以使用 Microsoft.KeyVault 资源提供程序。 This resource provider offers a resource type called vaults for creating the key vault.此资源提供程序提供了一种称为保管库的资源类型,用于创建密钥保管库。

The name of a resource type is in the format: {resource-provider}/{resource-type}.资源类型的名称格式为:{resource-provider}/{resource-type}。 The resource type for a key vault is Microsoft.KeyVault/vaults.密钥保管库的资源类型是 Microsoft.KeyVault/vaults。

Then it says:然后它说:

Before using a resource provider, your Azure subscription must be registered for the resource provider.在使用资源提供者之前,您的 Azure 订阅必须为资源提供者注册。 Registration configures your subscription to work with the resource provider.注册将您的订阅配置为与资源提供者一起使用。

So, obviously, resource providers are important if I want to work with Azure resources.因此,显然,如果我想使用 Azure 资源,资源提供者很重要。 There is documentation explaining how to register them, list them, which ones are registered with a subscription by default.有文档解释如何注册它们,列出它们,哪些是默认注册的订阅。 But I cannot find anywhere that explains what they actually are .但我找不到任何地方可以解释它们实际上什么。

According to Azure Resource Manager - Terminology :根据Azure 资源管理器 - 术语

Resource provider - A service that supplies Azure resources.资源提供者- 提供 Azure 资源的服务。 For example, a common resource provider is Microsoft.Compute, which supplies the virtual machine resource.例如,一个常见的资源提供者是 Microsoft.Compute,它提供虚拟机资源。 Microsoft.Storage is another common resource provider. Microsoft.Storage 是另一个常见的资源提供程序。

According to azure-resource-provider-sdk :根据azure-resource-provider-sdk

A Resource Provider (RP, for short) is simply an HTTPS RESTful API contract that Add-on owners will implement so a trusted Azure endpoint can provision, delete, and manage services on a user's behalf.资源提供者(简称 RP)只是一个 HTTPS RESTful API 合同,附加组件所有者将实施该合同,因此受信任的 Azure 可以代表用户的端点提供、删除和管理服务。 Azure uses the Response from an RP to render and show a set of simple management operations in the Azure Management Portal. Azure 使用来自 RP 的响应在 Azure 管理门户中呈现和显示一组简单的管理操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM