Hello @Brendan Yee !
Welcome to Microsoft QnA!
Azure Purview managed resources (such as the managed storage account) are automatically created when an Azure Purview account is provisioned. This is a built-in aspect of Azure Purview that simplifies management and operations for users. You cannot directly control this process or include these resources as part of your Bicep file.
The names of Azure Purview managed resources are automatically generated by Azure and follow a specific naming convention. This is done to ensure uniqueness and avoid conflicts. Unfortunately, you cannot specify custom names for these resources.
Here is a Sample File in BICEP from GitHub - Azure Quickstart Templates:
@description('Specify a name for the Azure Purview account.')
param purviewName string = 'azurePurview${uniqueString(resourceGroup().id)}'
@description('Specify a region for resource deployment.')
param location string = resourceGroup().location
resource purview 'Microsoft.Purview/accounts@2021-12-01' = {
name: purviewName
location: location
sku: {
name: 'Standard'
capacity: 1
}
identity: {
type: 'SystemAssigned'
}
properties: {
publicNetworkAccess: 'Enabled'
managedResourceGroupName: 'managed-rg-${purviewName}'
}
}
as we can see we cannot set anywhere the Managed resources names
The same applies from Azure Portal , when you try to deploy a new Purview Account
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards