Edit

Quickstart: Create an Azure Kubernetes Fleet Manager using Bicep

Applies to: ✔️ Fleet Manager ✔️ Fleet Manager with hub cluster

Learn how to create an Azure Kubernetes Fleet Manager using Bicep.

Before you begin

If you don't have an Azure account, create a free account before you begin.

Create a Fleet Manager

You can create a Fleet Manager and later add your AKS and Arc-enabled clusters as member clusters. If the Fleet Manager has a hub cluster, more features are enabled, such as Kubernetes object propagation and Managed Fleet Namespaces. For more information, see the conceptual overview of Fleet Manager types, which provides a comparison of different Fleet Manager configurations.

Important

Once a Fleet Manager is created, it's possible to upgrade a Fleet Manager resource without a hub cluster to one with a hub cluster. For Fleet Manager resources with a hub cluster, once private or public is selected it can't be changed.

If you only want to use Fleet Manager for update orchestration, you can create a hubless Fleet Manager with the following Bicep:

Review Bicep
@description('The name of the Fleet resource.')
param fleetName string = 'my-hubless-fleet'

@description('The location of the Fleet resource.')
param location string = resourceGroup().location

resource hubless_fleet 'Microsoft.ContainerService/fleets@2025-03-01' = {
  name: fleetName
  location: location
}
Deploy the Bicep file using either Azure CLI or Azure PowerShell.
  1. Save the Bicep file as main.bicep to your local computer.

  2. Deploy the Bicep file using either Azure CLI or Azure PowerShell.

    az group create --name myResourceGroup --location eastus
    az deployment group create --resource-group myResourceGroup --template-file main.bicep'
    

Next steps