You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/scope-extension-resources.md
+39-1Lines changed: 39 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Scope on extension resource types (Bicep)
3
3
description: Describes how to use the scope property when deploying extension resource types with Bicep.
4
4
ms.topic: conceptual
5
-
ms.date: 02/11/2022
5
+
ms.date: 07/12/2022
6
6
---
7
7
8
8
# Set scope for extension resources in Bicep
@@ -138,6 +138,44 @@ The same requirements apply to extension resources as other resource when target
138
138
*[Management group deployments](deploy-to-management-group.md)
139
139
*[Tenant deployments](deploy-to-tenant.md)
140
140
141
+
The resourceGroup and subscription properties are only allowed on modules. These properties are not allowed on individual resources. Use modules if you want to deploy an extension resource with the scope set to a resource in a different resource group.
142
+
143
+
The following example shows how to apply a lock on a storage account that resides in a different resource group.
For a full list of extension resource types, see [Resource types that extend capabilities of other resources](../management/extension-resource-types.md).
The resourceGroup and subscription properties are only allowed on nested or linked deployments. These properties are not allowed on individual resources. Use nested or linked deployments if you want to deploy an extension resource with the scope set to a resource in a different resource group.
83
+
82
84
## Next steps
83
85
84
86
* To understand how to define parameters in your template, see [Understand the structure and syntax of ARM templates](./syntax.md).
0 commit comments