Skip to content

Commit 962dc91

Browse files
author
Jill Grant
authored
Merge pull request #285869 from davidsmatlak/ds-ama-mrgdoc-20240829
Edits content and updates images for SFI guidelines
2 parents 2a14b32 + a096721 commit 962dc91

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed
-2.7 KB
Loading
-3.29 KB
Loading
-3.41 KB
Loading

articles/azure-resource-manager/managed-applications/update-managed-resources.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Update managed resources
33
description: Describes how to work on resources in the managed resource group for an Azure managed application.
44
ms.topic: how-to
55
ms.custom: devx-track-azurecli
6-
ms.date: 06/24/2024
6+
ms.date: 08/29/2024
77
---
88

99
# Work with resources in the managed resource group for Azure managed application
1010

11-
This article describes how to update resources that are deployed as part of a managed application. As the publisher of a managed application, you have access to the resources in the managed resource group. To update these resources, you need to find the managed resource group associated with a managed application, and access the resource in that resource group.
11+
This article describes how to update resources that are deployed as part of a managed application. As the publisher of a managed application, you have management access to resources in the managed resource group in the customer's Azure tenant. To update these resources, you need to sign in to the customer's subscription, find the managed resource group associated with a managed application, and access the resources in the managed resource group. For more information about permissions, see [Publisher and customer permissions](./overview.md#publisher-and-customer-permissions).
1212

1313
This article assumes you deployed the managed application in the [Managed Web Application (IaaS) with Azure management services](https://github.com/Azure/azure-managedapp-samples/tree/master/Managed%20Application%20Sample%20Packages/201-managed-web-app) sample project. That managed application includes a **Standard_D1_v2** virtual machine. If you didn't deploy that managed application, you can still use this article to become familiar with the steps for updating a managed resource group.
1414

@@ -26,30 +26,30 @@ In this article, you use Azure CLI to:
2626

2727
## Get managed application and managed resource group
2828

29-
To get the managed applications in a resource group, use:
29+
To get the managed applications in a resource group, use the following commands. Replace `<resourceGroupName>` with your resource group name.
3030

3131
```azurecli-interactive
32-
az managedapp list --query "[?contains(resourceGroup,'DemoApp')]"
32+
az managedapp list --query "[?contains(resourceGroup,'<resourceGroupName>')]"
3333
```
3434

3535
To get the ID of the managed resource group, use:
3636

3737
```azurecli-interactive
38-
az managedapp list --query "[?contains(resourceGroup,'DemoApp')].{ managedResourceGroup:managedResourceGroupId }"
38+
az managedapp list --query "[?contains(resourceGroup,'<resourceGroupName>')].{ managedResourceGroup:managedResourceGroupId }"
3939
```
4040

4141
## Resize VMs in managed resource group
4242

43-
To see the virtual machines in the managed resource group, provide the name of the managed resource group.
43+
To see the virtual machines in the managed resource group, provide the name of the managed resource group. Replace `<mrgName>` with your managed resource group's name.
4444

4545
```azurecli-interactive
46-
az vm list -g DemoApp6zkevchqk7sfq --query "[].{VMName:name,OSType:storageProfile.osDisk.osType,VMSize:hardwareProfile.vmSize}"
46+
az vm list -g <mrgName> --query "[].{VMName:name,OSType:storageProfile.osDisk.osType,VMSize:hardwareProfile.vmSize}"
4747
```
4848

4949
To update the size of the VMs, use:
5050

5151
```azurecli-interactive
52-
az vm resize --size Standard_D2_v2 --ids $(az vm list -g DemoApp6zkevchqk7sfq --query "[].id" -o tsv)
52+
az vm resize --size Standard_D2_v2 --ids $(az vm list -g <mrgName> --query "[].id" -o tsv)
5353
```
5454

5555
After the operation completes, verify the application is running on Standard D2 v2.
@@ -58,10 +58,10 @@ After the operation completes, verify the application is running on Standard D2
5858

5959
## Apply policy to managed resource group
6060

61-
Get the managed resource group and assignment a policy at that scope. The policy **e56962a6-4747-49cd-b67b-bf8b01975c4c** is a built-in policy for specifying allowed locations.
61+
Get the managed resource group and assign a policy at that scope. The policy **e56962a6-4747-49cd-b67b-bf8b01975c4c** is a built-in policy to specify allowed locations.
6262

6363
```azurecli-interactive
64-
managedGroup=$(az managedapp show --name <app-name> --resource-group DemoApp --query managedResourceGroupId --output tsv)
64+
managedGroup=$(az managedapp show --name <app-name> --resource-group <resourceGroupName> --query managedResourceGroupId --output tsv)
6565
6666
az policy assignment create --name locationAssignment --policy e56962a6-4747-49cd-b67b-bf8b01975c4c --scope $managedGroup --params '{
6767
"listofallowedLocations": {
@@ -85,5 +85,5 @@ The policy assignment appears in the portal.
8585

8686
## Next steps
8787

88-
- For an introduction to managed applications, see [Managed application overview](overview.md).
88+
- For an introduction to managed applications, see [Azure Managed Applications overview](overview.md).
8989
- For sample projects, see [Sample projects for Azure managed applications](sample-projects.md).

0 commit comments

Comments
 (0)