Skip to content

Commit eb24323

Browse files
authored
subscriptions-readme-sample-update (Azure#17559)
* update * update
1 parent ffb22c4 commit eb24323

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

sdk/subscription/arm-subscriptions/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5050
// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
5151
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5252
const creds = new DefaultAzureCredential();
53-
const client = new SubscriptionClient(creds, subscriptionId);
54-
const testSubscriptionId = "testsubscriptionId";
55-
client.subscriptions.listLocations(testSubscriptionId).then((result) => {
53+
const client = new SubscriptionClient(creds);
54+
client.subscriptions.listLocations(subscriptionId).then((result) => {
5655
console.log("The result is:");
5756
console.log(result);
5857
}).catch((err) => {
@@ -88,9 +87,8 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8887
clientId: "<client id for your Azure AD app>",
8988
tenantId: "<optional tenant for your organization>"
9089
});
91-
const client = new Azure.ArmSubscriptions.SubscriptionClient(creds, subscriptionId);
92-
const testSubscriptionId = "testsubscriptionId";
93-
client.subscriptions.listLocations(testSubscriptionId).then((result) => {
90+
const client = new Azure.ArmSubscriptions.SubscriptionClient(creds);
91+
client.subscriptions.listLocations(subscriptionId).then((result) => {
9492
console.log("The result is:");
9593
console.log(result);
9694
}).catch((err) => {

sdk/subscription/arm-subscriptions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-subscriptions",
33
"author": "Microsoft Corporation",
44
"description": "SubscriptionClient Library with typescript type definitions for node.js and browser.",
5-
"version": "3.1.1",
5+
"version": "3.1.2",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",

sdk/subscription/arm-subscriptions/src/subscriptionClientContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { TokenCredential } from "@azure/core-auth";
1414
import * as msRestAzure from "@azure/ms-rest-azure-js";
1515

1616
const packageName = "@azure/arm-subscriptions";
17-
const packageVersion = "3.1.1";
17+
const packageVersion = "3.1.2";
1818

1919
export class SubscriptionClientContext extends msRestAzure.AzureServiceClient {
2020
credentials: msRest.ServiceClientCredentials | TokenCredential;

0 commit comments

Comments
 (0)