How to deploy Dapr extension for Azure Kubernetes Service (AKS) using Bicep

Dapr now has an official AKS extension with support for native Dapr configuration through command-line arguments via the Azure CLI. The existing docs only show how to install this via the Azure CLI.

Here is the equivalent Bicep template to do the same deployment. aks is a reference to an Azure Kubernetes Resource defined earlier in the file.

YAML
resource dapr 'Microsoft.KubernetesConfiguration/extensions@2022-03-01' = {
  name: 'dapr'
  scope: aks
  properties: {
    extensionType: 'microsoft.dapr'
    scope: {
      cluster: {
        releaseNamespace: 'dapr-system'
      }
    }
    autoUpgradeMinorVersion: true
  }
}

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *