Skip to content

Brief Connect v2.7.x Infrastructure Release Notes

Supported package versions: 2.7.x

This release is an infrastructure security hardening release for environments already running Brief Connect package 2.7.x. It also addresses Microsoft's Azure Cache for Redis retirement by moving guidance and deployment patterns to Azure Managed Redis. There is no Brief Connect application package upgrade in this release.

Who should use this guide

Use this page if you manage Brief Connect infrastructure and deployment pipelines.

What changed

Azure Cache for Redis retirement response

Security hardening and identity-based access

  • Azure DocumentDB (MongoDB) uses Microsoft Entra ID authentication for the Function App and API Web App system-assigned managed identities. The deployment provisions Entra-backed users and stores the Entra connection string in Key Vault.
  • Azure Managed Redis uses an encrypted redisEnterprise database with access-key authentication disabled. The Function App and API Web App identities receive the database's default access policy. Set redisSkuName and redisHighAvailability in the parameter file.
  • Azure Storage accounts disable shared-key access. The App uses blob, queue, and table service endpoints for host storage and a queue endpoint for application data storage. The deployment assigns the required storage role-based access control (RBAC) roles to the application identities.
  • The web storage account hosts the static website. The App uses its blob endpoint for plugin bundles with managed identity. Set assetsDeploymentServicePrincipalId to the package deployment service principal's object ID; the infrastructure deployment grants it Storage Blob Data Owner on web storage.

Documentation updates

Infrastructure settings

  • Managed identity settings are clarified for Azure DocumentDB (MongoDB), Azure Managed Redis, and Azure Storage accounts.
  • Endpoint-based Azure Storage account settings are documented for Entra ID authentication scenarios.
  • Plugins storage guidance is updated for environments that use Plugins Editor with Entra ID authentication.
  • Related settings reference: Infrastructure Settings.

Solution and deployment documentation alignment

One modular deployment

  • Bicep/main-all.bicep replaces the sequential main-1.bicep and main-2.bicep deployments for the full environment. Reusable resource definitions live under Bicep/modules/.
  • Scripts/ProvisionInfra.ps1 accepts -BicepFile and -BicepParameterFile, then deploys that root and parameter file to the resource group set by azureResourceGroupName. It no longer selects a MongoDB topology or provisions MongoDB Atlas.
  • The root accepts an optional tags object for resources that support tags.

Infrastructure upgrade actions

Non-standard infrastructure

The steps below apply to standard Brief Connect base infrastructure and release pipelines. If your environment uses hardened or custom infrastructure (for example VNets, private endpoints, custom RBAC models, or alternative Infrastructure as Code tools), align the upgrade plan with the E2 support team before deployment.

Complete these steps for each target environment. Review the existing resource names, identities and database contents before deploying the full root to an established environment.

What will be changed

Short summary

  • One modular Bicep/main-all.bicep deployment replaces the sequential main-1.bicep and main-2.bicep roots and provisions Azure DocumentDB rather than MongoDB Atlas.
  • The Function App and API Web App use managed identities for DocumentDB, Azure Managed Redis, Azure Storage, Key Vault, and Azure SQL.
  • Azure Managed Redis replaces Azure Cache for Redis; Redis access keys and storage shared keys are disabled.
  • The template assigns storage roles to application identities and the package deployment service principal.

RBAC roles used in this change set

Role Based Access Control Administrator assignment conditions for deployment service principal:

  • New: Storage Blob Data Owner (b7e6dc6d-f1e8-4753-8033-0f276bb0955b)
  • New: Storage Table Data Contributor (0a9a7e1f-b9d0-4cc4-a60d-0319b160aaa3)
  • New: Storage Queue Data Contributor (974c5e8b-45b9-4653-ba55-5f855dd0fb88)
  • Existing: Storage Account Contributor (17d1049b-9a84-46fb-8f53-869881c3d3ab)
  • Existing: Key Vault Secrets User (4633458b-17de-408a-b874-0445c86b69e6)
  • Existing: Key Vault Secrets Officer (deployment identity assignment condition)

Resource-scoped change details

  • Azure DocumentDB (MongoDB vCore)
    • azureDocumentDb.bicep deploys a Microsoft.DocumentDB/mongoClusters cluster with Microsoft Entra ID as its only allowed authentication mode.
    • documentDbEntraPermissions.bicep provisions users for the Function App and API Web App system-assigned identities.
    • The Entra connection string is stored in Key Vault. The cluster uses region; mongoAzDocumentDb* parameters control its sizing, availability, and network access.
  • Azure Managed Redis
    • redis.bicep deploys an encrypted Microsoft.Cache/redisEnterprise database with accessKeysAuthentication: Disabled.
    • redisEntraPermissions.bicep assigns the default database access policy to both app identities.
    • The host-and-port connection string contains no access key and is stored in Key Vault. Set redisSkuName and redisHighAvailability (Disabled or Enabled).
  • Function App (Microsoft.Web/sites)
    • Its system-assigned identity receives DocumentDB, Redis, storage, and Key Vault access; it also uses a user-assigned identity for Azure SQL.
    • Host storage uses AzureWebJobsStorage__blobServiceUri, AzureWebJobsStorage__queueServiceUri, and AzureWebJobsStorage__tableServiceUri.
    • App settings include MongoDbUseManagedIdentity, RedisUseManagedIdentity, and DataStorageUseManagedIdentity.
  • API Web App (Microsoft.Web/sites)
    • Its system-assigned identity receives DocumentDB, Redis, storage, and Key Vault access; it shares the user-assigned Azure SQL identity with the Function App.
    • Both apps use MongoDbConnectionString, RedisCacheConnectionString, and DataStorageAccountConnectionString__queueServiceUri with managed identity settings.
  • Azure Storage account (Web)
    • Shared-key access is disabled; the account hosts the static website and supplies the plugin bundle blob endpoint through BundleStore__ConnectionString and BundleStore__UseManagedIdentity.
    • Both app identities receive Storage Blob Data Owner. Set assetsDeploymentServicePrincipalId to the package deployment service principal's object ID so the template grants that principal the same role.
  • Azure Storage account (Function)
    • Shared-key access is disabled. The Function App receives Storage Blob Data Owner, Storage Table Data Contributor, Storage Queue Data Contributor, and Storage Account Contributor.
    • The API Web App receives blob-owner, queue-contributor, and account-contributor roles.
  • Azure Storage account (Data)
    • Shared-key access is disabled. Both app identities receive Storage Queue Data Contributor and Storage Account Contributor.
    • Application data storage uses DataStorageAccountConnectionString__queueServiceUri and DataStorageUseManagedIdentity instead of a key-based connection string.
  • Key Vault and Azure SQL
    • Key Vault stores the Entra-based DocumentDB, keyless Redis, and Azure SQL connection strings; it does not create Function or data storage connection-string secrets.
    • Both app identities receive Key Vault Secrets User. Azure SQL uses a Microsoft Entra administrator, grants the shared SQL access identity full access, and grants the Power BI application read-only access.
  • Deployment automation
    • Scripts/ProvisionInfra.ps1 accepts -BicepFile and -BicepParameterFile. It no longer selects a MongoDB topology or performs post-deployment web-storage role assignments.

1) Update deployment identity RBAC assignment conditions

Update the Role Based Access Control Administrator assignment conditions for [EnvPrefix] Brief Connect DevOps to include:

  • Storage Account Contributor
  • Storage Blob Data Owner
  • Storage Table Data Contributor
  • Storage Queue Data Contributor
  • Key Vault Secrets User
  • Key Vault Secrets Officer

Related deployment guide section:

2) Update environment parameter generation and variable groups

Update the environment's Scripts/Environments/Generate[EnvName]Params.ps1 script and variable group to match Bicep/main-all.bicep:

  • Generate one Bicep/<environment>.bicepparam file with using './main-all.bicep'. Use Bicep/tests/main-all.bicepparam to identify required parameters and replace its example values with the environment's values.
  • Supply the app registration IDs (serverAppRegistrationClientId, clientAppRegistrationClientId, pbiApplicationClientId), resource names and region, separate API and Function App Service Plan names and SKUs, Redis SKU and high availability, Azure DocumentDB sizing, and Azure SQL database SKU.
  • Set assetsDeploymentServicePrincipalId to the package deployment service principal's object ID to grant it web-storage access.
  • Review Azure DocumentDB and Azure SQL public access and firewall settings for the environment. Do not copy the example parameter file's open development firewall values into production.
  • Set azureResourceGroupName in the environment variable group and link that group to the release stage. Make infrastructureRootDirectory available to the pipeline; ProvisionInfra.ps1 reads both variables.

Related deployment guide sections:

3) Confirm release pipeline task configuration

In Deploy Brief Connect Azure Resources, confirm that the target stage includes:

  • A PowerShell task that runs Scripts/Environments/Generate[EnvName]Params.ps1 to generate the environment's .bicepparam file.
  • An Azure CLI task that runs Scripts/ProvisionInfra.ps1 with -BicepFile Bicep/main-all.bicep -BicepParameterFile Bicep/<environment>.bicepparam. Use the same parameter file generated by the PowerShell task.
  • The environment's linked variable group and the correct Azure Resource Manager service connection.

Related deployment guide section:

4) Run the infrastructure deployment pipeline

Run the environment's parameter generator, then build the root and the generated parameter file and review the proposed resource-group changes before running the release. The commands below run from the infrastructure repository root; replace the example parameter path with the file generated for your environment.

az bicep build --file Bicep/main-all.bicep --stdout
az bicep build-params --file Bicep/<environment>.bicepparam
az deployment group what-if --resource-group <resource-group> --template-file Bicep/main-all.bicep --parameters Bicep/<environment>.bicepparam
  1. Save your pipeline and variable group updates.
  2. Create a new release for the target environment stage.
  3. Run the stage with the same parameter file you reviewed using what-if, and wait for completion.

Related deployment guide section:

5) Validate post-deployment outcomes

  • Confirm both app identities can access Azure DocumentDB and Azure Managed Redis. Check that the Function App can use its host storage and that the API and Function App can read their Key Vault references.
  • Confirm the SQL access identity can access the Azure SQL replica, the Power BI application has read-only access, and replication and Application Insights telemetry are working.
  • Confirm the static website loads, plugin bundle access works, and sign-in, dashboard, record access, search and Admin Health checks complete successfully.
  • Confirm migration, record counter, SharePoint library, and provisioning retry health checks pass in Admin Health.

Related deployment guide sections:

6) Delete legacy Azure Cache for Redis resource

Delete the legacy Azure Cache for Redis resource from the environment resource group only after:

  • Step 5 validation is complete.
  • The deployment outcome is confirmed stable.
  • You confirm rollback is not required.

If rollback might still be required, delay deletion for an agreed observation window.

Rollback steps

Use this rollback only if the infrastructure upgrade cannot be stabilized in the target environment.

  1. Re-run the previous known-good Azure infrastructure release for the same environment (the last successful pre-2.7.x infrastructure state).
  2. Restore the previous environment parameter files and pipeline variable group values used by that known-good release.
  3. Re-apply all previous application settings for both Function App and API Web App, including settings changed in this release (MongoDB, Redis, Azure Storage account, and managed identity flags).
  4. Restore any previous Key Vault secret values and references that were replaced as part of this release.
  5. Redeploy the previous application package version only if required by your rollback plan.
  6. Run post-deployment smoke testing to confirm sign-in, dashboard, record access, search/filter, and admin health checks are working.

Related deployment guide sections: