Skip to content

v5.0.0-preview0002

Pre-release
Pre-release
Compare
Choose a tag to compare
@PlagueHO PlagueHO released this 19 May 20:32
91a3622

[v5.0.0-preview0002]

Fixed

  • Removed unnecessary quotes from README (works without them in PowerShell and is easier to read)
  • Modified README to use splats, which is part of the recommended style guide
  • Removed Ubuntu-18.04 testing from build pipeline because it is no longer supported by Microsoft
    managed Azure DevOps images - Fixes Issue #473.
  • Added Ubuntu-22.04 testing to build pipeline - Fixes Issue #474.
  • Removed MacOS-10.15 testing from build pipeline because it is no longer supported by Microsoft
    managed Azure DevOps images - Fixes Issue #476.
  • Added macOS-12 testing to build pipeline - Fixes Issue #477.
  • Changed integration tests to deploy Cosmos DB using Bicep.
  • Update requirements.psd1 to install modules Az.Accounts 2.19.0 and Az.Resources 6.16.2.
  • Renamed New-CosmosDbAuthorizationToken to New-CosmosDbAuthorizationHeader to better indicate
    actual function return type.
  • Refactored Invoke-CosmosDbRequest to support getting the EntraIdToken property from the context object
    and using it for authentication if it is provided. If the Key property is provided, the EntraIdToken property
    will take precendence and the key will be ignored.
  • Updated CI pipeline to use PublishCodeCoverageResults@2 task rather than PublishCodeCoverageResults@1
    task to support the latest version of the task.

Changed

  • BREAKING CHANGE: Updated module to require Az.Accounts v2.19.0 or newer and Az.Resources
    v6.16.2 or newer.
  • Renamed New-CosmosDbAuthorizationHeader to Get-CosmosDbAuthorizationHeaderFromContext to better indicate
    actual function behaviour.
  • Renamed Get-CosmosDbAuthorizationHeadersFromContext to Get-CosmosDbAuthorizationHeaderFromContextResourceToken to better
    indicate actual function behaviour and align naming convention.
  • Refactored Invoke-CosmosDbRequest to clean up logic to generate the authorization header.
  • Added new utillity function Get-CosmosDbAuthorizationHeaderFromContextEntraId to generate the authorization
    header when an Entra ID Token is provided in the context. This function is used by Invoke-CosmosDbRequest to
    generate the authorization header when an Entra ID Token is provided.
  • Changed module import process to load the Az.Accounts and Az.Resources modules
    only if they haven't already been loaded to support saving the module and storing in
    folders.

Added

  • Added support for setting an Entra Id OAuth2 Token in the New-CosmosDbContext - Fixes Issue #479.
  • Added new Get-CosmosDbEntraIdToken function that uses Get-AzAccessToken to get an Entra Id Token
    for use in Cosmos DB requests. This is used by New-CosmosDbContext to set the Entra Id Token in the
    context object - Fixes Issue #479.