Skip to content

Commit c24f55a

Browse files
authored
Update tutorial-using-functions.md
Updated document to use the newer version of Resource Graph and the AZ reference as it fails otherwise loading powershell modules.
1 parent 3d09e4e commit c24f55a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/update-manager/tutorial-using-functions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ In this tutorial, you learn how to:
3535

3636
> [!NOTE]
3737
> You have to load the dependencies only for the first time.
38+
> If the PowerShell dependencies are failing to load. Check the latest versions of AZ, and AZ.ResourceGraph.
3839
3940
1. On the **Function App**, select **App files**.
4041
1. Under the **host.json**, enable **ManagedDependecy** to **True** and select **requirements.psd1**.
4142
1. Under the **requirements.psd1**, paste the following code:
4243

4344
```
4445
@{
45-
'Az'='5.*'
46-
'Az.ResourceGraph'='0.13.0'
46+
'Az'='12.*'
47+
'Az.ResourceGraph'='1.0.0'
4748
'Az.Resources'='6.*'
4849
'ThreadJob' = '2.*'
4950
}
@@ -162,7 +163,7 @@ In this tutorial, you learn how to:
162163
Connect-AzAccount -Identity
163164
164165
# Install the Resource Graph module from PowerShell Gallery
165-
# Install-Module -Name Az.ResourceGraph
166+
Install-Module -Name Az.ResourceGraph
166167
167168
$maintenanceRunId = $eventGridEvent.data.CorrelationId
168169
$resourceSubscriptionIds = $eventGridEvent.data.ResourceSubscriptionIds

0 commit comments

Comments
 (0)