Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tutorial-using-functions.md #124486

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions articles/update-manager/tutorial-using-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ In this tutorial, you learn how to:

> [!NOTE]
> You have to load the dependencies only for the first time.
> If the PowerShell dependencies are failing to load. Check the latest versions of AZ, and AZ.ResourceGraph.

1. On the **Function App**, select **App files**.
1. Under the **host.json**, enable **ManagedDependecy** to **True** and select **requirements.psd1**.
1. Under the **requirements.psd1**, paste the following code:

```
@{
'Az'='5.*'
'Az.ResourceGraph'='0.13.0'
'Az'='12.*'
'Az.ResourceGraph'='1.0.0'
'Az.Resources'='6.*'
'ThreadJob' = '2.*'
}
Expand Down Expand Up @@ -162,7 +163,7 @@ In this tutorial, you learn how to:
Connect-AzAccount -Identity

# Install the Resource Graph module from PowerShell Gallery
# Install-Module -Name Az.ResourceGraph
Install-Module -Name Az.ResourceGraph

$maintenanceRunId = $eventGridEvent.data.CorrelationId
$resourceSubscriptionIds = $eventGridEvent.data.ResourceSubscriptionIds
Expand Down