File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
articles/governance/resource-graph Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : " Quickstart: Your first .NET Core query"
3
3
description : In this quickstart, you follow the steps to enable the Resource Graph NuGet packages for .NET Core and run your first query.
4
- ms.date : 07/09/2021
4
+ ms.date : 01/06/2023
5
5
ms.topic : quickstart
6
6
ms.custom : devx-track-csharp
7
+ ms.author : timwarner
7
8
---
8
9
# Quickstart: Run your first Resource Graph query using .NET Core
9
10
@@ -37,12 +38,11 @@ required packages.
37
38
dotnet new console --name "argQuery"
38
39
```
39
40
40
- 1 . Change directories into the new project folder and install the required packages for Azure
41
- Resource Graph:
41
+ 1 . Change directories into the new project folder and install the required packages for Azure Resource Graph:
42
42
43
43
``` dotnetcli
44
44
# Add the Resource Graph package for .NET Core
45
- dotnet add package Microsoft. Azure.Management .ResourceGraph --version 2 .0.0
45
+ dotnet add package Azure.ResourceManager .ResourceGraph --version 1 .0.0
46
46
47
47
# Add the Azure app auth package for .NET Core
48
48
dotnet add package Microsoft.Azure.Services.AppAuthentication --version 1.5.0
@@ -56,8 +56,8 @@ required packages.
56
56
using System .Threading .Tasks ;
57
57
using Microsoft .IdentityModel .Clients .ActiveDirectory ;
58
58
using Microsoft .Rest ;
59
- using Microsoft . Azure .Management .ResourceGraph ;
60
- using Microsoft . Azure .Management .ResourceGraph .Models ;
59
+ using Azure .ResourceManager .ResourceGraph ;
60
+ using Azure .ResourceManager .ResourceGraph .Models ;
61
61
62
62
namespace argQuery
63
63
{
You can’t perform that action at this time.
0 commit comments