Edit

Share via


Quickstart: Create an Azure Kubernetes Fleet Manager resource using Bicep

Get started with Azure Kubernetes Fleet Manager by using Bicep to create a Fleet Manager resource.

Prerequisites

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

Create a Fleet Manager resource

You can create a Fleet Manager resource to later group your AKS clusters as member clusters. If the Fleet Manager hub is enabled, other preview features are enabled, such as Kubernetes object propagation to member clusters. 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 resource has been 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 has been selected it cannot 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