Use azure identity package for e2e test credentials (#2032)

* Update identity package, remove ms-rest-nodeauth package.

* Test changes to use identity package.
This commit is contained in:
jawelton74
2025-01-21 07:07:18 -08:00
committed by GitHub
parent 96faf92c12
commit eceee36913
5 changed files with 121 additions and 412 deletions

View File

@@ -56,7 +56,7 @@ export class TestContainerContext {
export async function createTestSQLContainer(includeTestData?: boolean) {
const databaseId = generateUniqueName("db");
const containerId = "testcontainer"; // A unique container name isn't needed because the database is unique
const credentials = await getAzureCLICredentials();
const credentials = getAzureCLICredentials();
const armClient = new CosmosDBManagementClient(credentials, subscriptionId);
const accountName = getAccountName(TestAccount.SQL);
const account = await armClient.databaseAccounts.get(resourceGroupName, accountName);