PlagueHO / CosmosDB

PowerShell Module for working with Azure Cosmos DB databases, collections, documents, attachments, offers, users, permissions, triggers, stored procedures and user defined functions.
http://dscottraynsford.com
MIT License
152 stars 46 forks source link

Add an option to `New-CosmosDbContext` to automatically populate the EntraIdToken #482

Closed PlagueHO closed 2 months ago

PlagueHO commented 2 months ago

This would just call $entraIdOAuthToken = (Get-AzAccessToken -ResourceUrl 'https://MyAzureCosmosDB.documents.azure.com').Token and populate the property if the user/identify was already authenticated.