Skip to content

Commit 4cb0989

Browse files
authored
Merge pull request #180857 from tfitzmac/1123scope1
changed order of descriptions
2 parents efae4e2 + a879f81 commit 4cb0989

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

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

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Bicep functions - scopes
33
description: Describes the functions to use in a Bicep file to retrieve values about deployment scopes.
44
ms.topic: conceptual
5-
ms.date: 10/18/2021
5+
ms.date: 11/23/2021
66
---
77

88
# Scope functions for Bicep
@@ -13,14 +13,12 @@ This article describes the Bicep functions for getting scope values.
1313

1414
`managementGroup()`
1515

16+
Returns an object with properties from the management group in the current deployment.
17+
1618
`managementGroup(identifier)`
1719

1820
Returns an object used for setting the scope to a management group.
1921

20-
Or
21-
22-
Returns an object with properties from the management group in the current deployment.
23-
2422
Namespace: [az](bicep-functions.md#namespaces-for-functions).
2523

2624
### Remarks
@@ -46,7 +44,7 @@ The following example sets the scope for a module to a management group.
4644
```bicep
4745
param managementGroupIdentifier string
4846
49-
module 'module.bicep' = {
47+
module 'mgModule.bicep' = {
5048
name: 'deployToMG'
5149
scope: managementGroup(managementGroupIdentifier)
5250
}
@@ -115,15 +113,15 @@ output newManagementGroup string = mgName
115113

116114
`resourceGroup()`
117115

118-
`resourceGroup(resourceGroupName)`
116+
Returns an object that represents the current resource group.
119117

120-
`resourceGroup(subscriptionId, resourceGroupName)`
118+
`resourceGroup(resourceGroupName)`
121119

122-
Returns an object used for setting the scope to a resource group.
120+
And
123121

124-
Or
122+
`resourceGroup(subscriptionId, resourceGroupName)`
125123

126-
Returns an object that represents the current resource group.
124+
Return an object used for setting the scope to a resource group.
127125

128126
Namespace: [az](bicep-functions.md#namespaces-for-functions).
129127

@@ -172,7 +170,7 @@ The following example scopes a module to a resource group.
172170
```bicep
173171
param resourceGroupName string
174172
175-
module exampleModule 'module.bicep' = {
173+
module exampleModule 'rgModule.bicep' = {
176174
name: 'exampleModule'
177175
scope: resourceGroup(resourceGroupName)
178176
}
@@ -210,14 +208,12 @@ You can also use the resourceGroup function to apply tags from the resource grou
210208

211209
`subscription()`
212210

211+
Returns details about the subscription for the current deployment.
212+
213213
`subscription(subscriptionId)`
214214

215215
Returns an object used for setting the scope to a subscription.
216216

217-
Or
218-
219-
Returns details about the subscription for the current deployment.
220-
221217
Namespace: [az](bicep-functions.md#namespaces-for-functions).
222218

223219
### Remarks
@@ -254,7 +250,7 @@ When used for getting details about the subscription, the function returns the f
254250
The following example scopes a module to the subscription.
255251

256252
```bicep
257-
module exampleModule 'module.bicep' = {
253+
module exampleModule 'subModule.bicep' = {
258254
name: 'deployToSub'
259255
scope: subscription()
260256
}
@@ -291,7 +287,7 @@ An object used for setting the `scope` property on a [module](modules.md#set-mod
291287
The following example shows a module deployed to the tenant.
292288

293289
```bicep
294-
module exampleModule 'module.bicep' = {
290+
module exampleModule 'tenantModule.bicep' = {
295291
name: 'deployToTenant'
296292
scope: tenant()
297293
}

0 commit comments

Comments
 (0)