Skip to content

Commit 5ac5dfc

Browse files
Merge pull request #245071 from tfitzmac/0714rps
update resource providers
2 parents 6af512d + 35a38e4 commit 5ac5dfc

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

articles/azure-resource-manager/management/azure-services-resource-providers.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
title: Resource providers by Azure services
33
description: Lists all resource provider namespaces for Azure Resource Manager and shows the Azure service for that namespace.
44
ms.topic: conceptual
5-
ms.date: 02/28/2023
5+
ms.date: 07/14/2023
66
ms.custom: ignite-2022, devx-track-arm-template
7+
content_well_notification:
8+
- AI-contribution
79
---
810

911
# Resource providers for Azure services
@@ -186,26 +188,26 @@ The resources providers that are marked with **- registered** are registered by
186188

187189
## Registration
188190

189-
The resources providers in the preceding section that are marked with **- registered** are registered by default for your subscription. To use the other resource providers, you must [register them](resource-providers-and-types.md). However, many resource providers are registered for you when you take certain actions. For example, if you create a resource through the portal, the portal automatically registers any unregistered resource providers that are needed. When deploy resources through an [Azure Resource Manager template](../templates/overview.md), any required resource providers are also registered.
191+
Resource providers marked with **- registered** in the previous section are automatically registered for your subscription. For other resource providers, you need to [register them](resource-providers-and-types.md). However, many resource providers are registered automatically when you perform specific actions. For example, when you create resources through the portal or by deploying an [Azure Resource Manager template](../templates/overview.md), Azure Resource Manager automatically registers any required unregistered resource providers.
190192

191193
> [!IMPORTANT]
192-
> Only register a resource provider when you're ready to use it. The registration step enables you to maintain least privileges within your subscription. A malicious user can't use resource providers that aren't registered.
194+
> Register a resource provider only when you're ready to use it. This registration step helps maintain least privileges within your subscription. A malicious user can't use unregistered resource providers.
193195
>
194-
> When you register resource providers that aren't needed, you may see apps in your Azure Active Directory tenant that you don't recognize. Microsoft adds the app for a resource provider when you register it. These applications are typically added by Windows Azure Service Management API. To avoid having unnecessary apps in your tenant, only register resource providers that are needed.
196+
> Registering unnecessary resource providers may result in unrecognized apps appearing in your Azure Active Directory tenant. Microsoft adds the app for a resource provider when you register it. These apps are typically added by the Windows Azure Service Management API. To prevent unnecessary apps in your tenant, only register needed resource providers.
195197
196198
## Find resource provider
197199

198-
If you have existing infrastructure in Azure, but aren't sure which resource provider is used, you can use either Azure CLI or PowerShell to find the resource provider. Specify the name of the resource group that contains the resources to find.
200+
To identify resource providers used for your existing Azure infrastructure, list the deployed resources. Specify the resource group containing the resources.
199201

200202
The following example uses Azure CLI:
201203

202204
```azurecli-interactive
203-
az resource list -g examplegroup
205+
az resource list --resource-group examplegroup
204206
```
205207

206208
The results include the resource type. The resource provider namespace is the first part of the resource type. The following example shows the **Microsoft.KeyVault** resource provider.
207209

208-
```json
210+
```output
209211
[
210212
{
211213
...
@@ -222,13 +224,37 @@ Get-AzResource -ResourceGroupName examplegroup
222224

223225
The results include the resource type. The resource provider namespace is the first part of the resource type. The following example shows the **Microsoft.KeyVault** resource provider.
224226

225-
```azurepowershell
227+
```output
226228
Name : examplekey
227229
ResourceGroupName : examplegroup
228230
ResourceType : Microsoft.KeyVault/vaults
229231
...
230232
```
231233

234+
The following example uses Python:
235+
236+
```python
237+
import os
238+
from azure.identity import DefaultAzureCredential
239+
from azure.mgmt.resource import ResourceManagementClient
240+
241+
subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
242+
credential = DefaultAzureCredential()
243+
resource_client = ResourceManagementClient(credential, subscription_id)
244+
245+
resource_group_name = "examplegroup"
246+
resources = resource_client.resources.list_by_resource_group(resource_group_name)
247+
248+
for resource in resources:
249+
print(resource.type)
250+
```
251+
252+
The results list the resource type. The resource provider namespace is the first part of the resource type. The following example shows the **Microsoft.KeyVault** resource provider.
253+
254+
```output
255+
Microsoft.KeyVault/vaults
256+
```
257+
232258
## Next steps
233259

234260
For more information about resource providers, including how to register a resource provider, see [Azure resource providers and types](resource-providers-and-types.md).

0 commit comments

Comments
 (0)