Hi neok-g,
Thanks for reaching out to Microsoft Q&A.
Ensure both keyvaults and bicep templates are correctly configured and accessible. Also, the role assignment for the user assigned identity should grant the “Key Vault Crypto Service Encryption User” role. Ensure that the role assignment is correctly set up.
Internal Server Error (HTTP Status Code: 500).
This error often indicates a server-side issue. If the feature is not supported, it might trigger this error.
Are there any working examples with bicep for deployment of an automation account with customer managed key?
bicep template for deploying an Azure Automation Account without cmk
resource automationAccount 'Microsoft.Automation/automationAccounts@xxxx' = {
name: 'myAutomationAccount'
location: resourceGroup().location
properties: {
sku: {
name: 'Basic'
}
}
}
output automationAccountName string = automationAccount.name
resource automationAccount 'Microsoft.Automation/automationAccounts@2020-01-13-preview' = {
name: 'myAutomationAccount'
location: resourceGroup().location
properties: {
sku: {
name: 'Basic'
}
}
}
output automationAccountName string = automationAccount.name
Moreover I also don't see an encryption menu option to setup CMK for an automation account via the Azure Portal.
As of now, there isn’t a direct encryption menu option for setting up CMK for an automation account via the Azure Portal.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.