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/managed-applications/update-managed-resources.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@ title: Update managed resources
3
3
description: Describes how to work on resources in the managed resource group for an Azure managed application.
4
4
ms.topic: how-to
5
5
ms.custom: devx-track-azurecli
6
-
ms.date: 06/24/2024
6
+
ms.date: 08/29/2024
7
7
---
8
8
9
9
# Work with resources in the managed resource group for Azure managed application
10
10
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).
12
12
13
13
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.
14
14
@@ -26,30 +26,30 @@ In this article, you use Azure CLI to:
26
26
27
27
## Get managed application and managed resource group
28
28
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.
30
30
31
31
```azurecli-interactive
32
-
az managedapp list --query "[?contains(resourceGroup,'DemoApp')]"
32
+
az managedapp list --query "[?contains(resourceGroup,'<resourceGroupName>')]"
33
33
```
34
34
35
35
To get the ID of the managed resource group, use:
36
36
37
37
```azurecli-interactive
38
-
az managedapp list --query "[?contains(resourceGroup,'DemoApp')].{ managedResourceGroup:managedResourceGroupId }"
38
+
az managedapp list --query "[?contains(resourceGroup,'<resourceGroupName>')].{ managedResourceGroup:managedResourceGroupId }"
39
39
```
40
40
41
41
## Resize VMs in managed resource group
42
42
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.
44
44
45
45
```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}"
47
47
```
48
48
49
49
To update the size of the VMs, use:
50
50
51
51
```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)
53
53
```
54
54
55
55
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
58
58
59
59
## Apply policy to managed resource group
60
60
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.
0 commit comments