Skip to content

Commit 5f3efa4

Browse files
authored
Merge pull request #198354 from tfitzmac/0516providers
update providers function
2 parents 9b5303e + b694f2d commit 5f3efa4

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

articles/azure-resource-manager/bicep/bicep-functions-resource.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes the functions to use in a Bicep file to retrieve values a
44
author: mumian
55
ms.author: jgao
66
ms.topic: conceptual
7-
ms.date: 04/28/2022
7+
ms.date: 05/16/2022
88
---
99

1010
# Resource functions for Bicep
@@ -479,7 +479,9 @@ You can use the response from `pickZones` to determine whether to provide null f
479479

480480
## providers
481481

482-
**The providers function has been deprecated.** We no longer recommend using it. If you used this function to get an API version for the resource provider, we recommend that you provide a specific API version in your template. Using a dynamically returned API version can break your template if the properties change between versions.
482+
**The providers function has been deprecated in Bicep.** We no longer recommend using it. If you used this function to get an API version for the resource provider, we recommend that you provide a specific API version in your Bicep file. Using a dynamically returned API version can break your template if the properties change between versions.
483+
484+
The [providers operation](/rest/api/resources/providers) is still available through the REST API. It can be used outside of a Bicep file to get information about a resource provider.
483485

484486
Namespace: [az](bicep-functions.md#namespaces-for-functions).
485487

@@ -653,7 +655,7 @@ You use this function to get the resource ID for resources that are [deployed to
653655

654656
### managementGroupResourceID example
655657

656-
The following template creates a policy definition, and assign the policy defintion. It uses the `managementGroupResourceId` function to get the resource ID for policy definition.
658+
The following template creates and assigns a policy definition. It uses the `managementGroupResourceId` function to get the resource ID for policy definition.
657659

658660
```bicep
659661
targetScope = 'managementGroup'

articles/azure-resource-manager/templates/template-functions-resource.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - resources
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to retrieve values about resources.
44
ms.topic: conceptual
5-
ms.date: 03/31/2022
5+
ms.date: 05/16/2022
66
ms.custom: devx-track-azurepowershell
77
---
88

@@ -406,10 +406,12 @@ Cosmos DB isn't a zonal resource but you can use the `pickZones` function to det
406406

407407
## providers
408408

409-
**The providers function has been deprecated.** We no longer recommend using it. If you used this function to get an API version for the resource provider, we recommend that you provide a specific API version in your template. Using a dynamically returned API version can break your template if the properties change between versions.
409+
**The providers function has been deprecated in ARM templates.** We no longer recommend using it. If you used this function to get an API version for the resource provider, we recommend that you provide a specific API version in your template. Using a dynamically returned API version can break your template if the properties change between versions.
410410

411411
In Bicep, the [providers](../bicep/bicep-functions-resource.md#providers) function is deprecated.
412412

413+
The [providers operation](/rest/api/resources/providers) is still available through the REST API. It can be used outside of an ARM template to get information about a resource provider.
414+
413415
## reference
414416

415417
`reference(resourceName or resourceIdentifier, [apiVersion], ['Full'])`
@@ -782,7 +784,7 @@ You use this function to get the resource ID for resources that are [deployed to
782784

783785
### managementGrouopResourceID example
784786

785-
The following template creates a policy definition, and assign the policy defintion. It uses the `managementGroupResourceId` function to get the resource ID for policy definition.
787+
The following template creates and assigns a policy definition. It uses the `managementGroupResourceId` function to get the resource ID for policy definition.
786788

787789
```json
788790
{

0 commit comments

Comments
 (0)