Skip to content

Commit 4bf6ccd

Browse files
author
SDK Automation
committed
Update from master
1 parent 279bc1e commit 4bf6ccd

18 files changed

+857
-1091
lines changed

sdk/subscription/arm-subscriptions/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/subscription/arm-subscriptions/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ import * as msRest from "@azure/ms-rest-js";
3131
import * as msRestAzure from "@azure/ms-rest-azure-js";
3232
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
3333
import { SubscriptionClient, SubscriptionModels, SubscriptionMappers } from "@azure/arm-subscriptions";
34-
34+
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
35+
3536
msRestNodeAuth.interactiveLogin().then((creds) => {
36-
const client = new SubscriptionClient(creds);
37-
client.subscriptions.list().then((result) => {
37+
const client = new SubscriptionClient(creds, subscriptionId);
38+
const subscriptionId = "testsubscriptionId";
39+
client.subscriptions.listLocations(subscriptionId).then((result) => {
3840
console.log("The result is:");
3941
console.log(result);
4042
});
@@ -96,4 +98,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9698

9799
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
98100

99-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fsubscription%2Farm-subscriptions%2FREADME.png)
101+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/subscription/arm-subscriptions/README.png)

0 commit comments

Comments
 (0)