From 166ceb6986bc4177c04ffd20a5a80c391eee9b09 Mon Sep 17 00:00:00 2001 From: Michael Sprague Date: Tue, 13 Aug 2019 10:09:11 -0400 Subject: [PATCH 1/5] [Graph] Update README.md Fix code samples - use tenantId vs subscriptionId --- sdk/graphrbac/graph/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/graphrbac/graph/README.md b/sdk/graphrbac/graph/README.md index bc8a44d19e8e..2fcacb1ce60a 100644 --- a/sdk/graphrbac/graph/README.md +++ b/sdk/graphrbac/graph/README.md @@ -30,10 +30,10 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import { GraphRbacManagementClient, GraphRbacManagementModels, GraphRbacManagementMappers } from "@azure/graph"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; +const tenantId = process.env["DOMAIN"]; msRestNodeAuth.interactiveLogin({{ tokenAudience: "https://graph.windows.net" }}).then((creds) => { - const client = new GraphRbacManagementClient(creds, subscriptionId, { + const client = new GraphRbacManagementClient(creds, tenantId, { baseUri: "https://graph.windows.net" }); client.signedInUser.get().then((result) => { @@ -68,7 +68,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to