Skip to content

Commit

Permalink
using the endpoints without .core
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant authored Aug 18, 2021
1 parent 3d3deab commit 0257ff1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/serviceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ export class ServiceClient {
if (isTokenCredential(credentials)) {
let scope: string | undefined = undefined;
const azureManagementClouds = [
"https://management.core.windows.net",
"https://management.core.chinacloudapi.cn",
"https://management.core.usgovcloudapi.net",
"https://management.core.cloudapi.de",
"https://management.windows.net",
"https://management.chinacloudapi.cn",
"https://management.usgovcloudapi.net",
"https://management.cloudapi.de",
];
if (
options?.baseUri &&
Expand Down
2 changes: 1 addition & 1 deletion test/serviceClientTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ describe("ServiceClient", function () {
},
};

const scope = "https://management.core.chinacloudapi.cn";
const scope = "https://management.chinacloudapi.cn";

class ServiceClientChildren extends ServiceClient {
getBaseUri(): string | undefined {
Expand Down

0 comments on commit 0257ff1

Please sign in to comment.