Skip to content

Commit 0e050bf

Browse files
committed
review edits
1 parent 9f67c26 commit 0e050bf

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

articles/azure-resource-manager/managed-applications/deploy-service-catalog-quickstart.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Get-AzManagedApplicationDefinition -ResourceGroupName appDefinitionGroup
5050
Create a variable for the managed application definition's resource ID.
5151

5252
```azurepowershell
53-
$managedappid = (Get-AzManagedApplicationDefinition -ResourceGroupName appDefinitionGroup -Name sampleManagedApplication).ManagedApplicationDefinitionId
53+
$definitionid = (Get-AzManagedApplicationDefinition -ResourceGroupName appDefinitionGroup -Name sampleManagedApplication).ManagedApplicationDefinitionId
5454
```
5555

56-
You use the `$managedappid` variable's value when you deploy the managed application.
56+
You use the `$definitionid` variable's value when you deploy the managed application.
5757

5858
# [Portal](#tab/azure-portal)
5959

@@ -165,7 +165,7 @@ New-AzManagedApplication `
165165
-ResourceGroupName applicationGroup `
166166
-Location westus3 `
167167
-ManagedResourceGroupName $mrgname `
168-
-ManagedApplicationDefinitionId $managedappid `
168+
-ManagedApplicationDefinitionId $definitionid `
169169
-Kind ServiceCatalog `
170170
-Parameter $params
171171
```
@@ -176,7 +176,7 @@ The parameters used in the deployment command:
176176
- `ResourceGroupName`: Name of the resource group you created for the managed application.
177177
- `Location`: Specify the region to deploy the resources. For this example, use _westus3_.
178178
- `ManagedResourceGroupName`: Uses the `$mrgname` parameters value. The managed resource group is created when the managed application is deployed.
179-
- `ManagedApplicationDefinitionId`: Uses the `$managedappid` variable's value for the managed application definition's resource ID.
179+
- `ManagedApplicationDefinitionId`: Uses the `$definitionid` variable's value for the managed application definition's resource ID.
180180
- `Kind`: Specifies that type of managed application. This example uses _ServiceCatalog_.
181181
- `Parameter`: Uses the `$parms` variable's value in the JSON formatted string.
182182

@@ -207,7 +207,8 @@ Get-AzManagedApplication -Name demoManagedApplication -ResourceGroupName applica
207207
Expand the properties to make it easier to read the `Properties` information.
208208

209209
```azurepowershell
210-
Get-AzManagedApplication -Name demoManagedApplication -ResourceGroupName applicationGroup | Select-Object -ExpandProperty Properties
210+
Get-AzManagedApplication -Name demoManagedApplication -ResourceGroupName applicationGroup |
211+
Select-Object -ExpandProperty Properties
211212
```
212213

213214
# [Portal](#tab/azure-portal)
@@ -228,26 +229,28 @@ You can view the resources deployed to the managed resource group.
228229

229230
# [PowerShell](#tab/azure-powershell)
230231

231-
To display the managed resource group's resources, run the following command. The variable `$mrgresources` parses the managed resource group's name from its ID.
232+
To display the managed resource group's resources, run the following command. You created the `$mrgname` variable when you created the parameters.
232233

233234
```azurepowershell
234-
$mrg=(Get-AzManagedApplication -Name demoManagedApplication -ResourceGroupName applicationGroup | Select-Object -ExpandProperty Properties).managedResourceGroupId
235+
Get-AzResource -ResourceGroupName $mrgname
236+
```
235237

236-
$mrgresources = ($mrg -split "/")[-1]
238+
To display all the role assignments for the managed resource group.
237239

238-
Get-AzResource -ResourceGroupName $mrgresources
240+
```azurepowershell
241+
Get-AzRoleAssignment -ResourceGroupName $mrgname
239242
```
240243

241-
To display all the role assignments for the managed resource group.
244+
The managed application definition you created in the quickstart articles used a group with the Owner role assignment. You can view the group with the following command.
242245

243246
```azurepowershell
244-
Get-AzRoleAssignment -ResourceGroupName $mrgresources
247+
Get-AzRoleAssignment -ResourceGroupName $mrgname -RoleDefinitionName Owner
245248
```
246249

247250
You can also list the deny assignments for the managed resource group.
248251

249252
```azurepowershell
250-
Get-AzDenyAssignment -ResourceGroupName $mrgresources
253+
Get-AzDenyAssignment -ResourceGroupName $mrgname
251254
```
252255

253256
# [Portal](#tab/azure-portal)
@@ -275,6 +278,8 @@ When you're finished with the managed application, you can delete the resource g
275278

276279
# [PowerShell](#tab/azure-powershell)
277280

281+
The command prompts you to confirm that you want to remove the resource group.
282+
278283
```azurepowershell
279284
Remove-AzResourceGroup -Name applicationGroup
280285
```
@@ -288,8 +293,6 @@ Remove-AzResourceGroup -Name applicationGroup
288293

289294
---
290295

291-
When the resource group that contains the managed application is deleted, the managed resource group is also deleted. In this example, when _applicationGroup_ is deleted the _rg-sampleManagedApplication_ resource group is deleted.
292-
293296
If you want to delete the managed application definition, delete the resource groups you created in the quickstart articles.
294297

295298
- **Publish application definition**: _packageStorageGroup_ and _appDefinitionGroup_.

0 commit comments

Comments
 (0)