CmdID / az / az agentfabric / az agentfabric aks
az agentfabric aks attach
Create a compute-resource association under an Agent Fabric. Azure CLI extensions reference
Create a ClusterAssociation for an AKS managed cluster or ACI SandboxGroup. Location and the target resource ID are required. The association name is independent from the target resource name; --cluster-name remains a compatibility alias.
2 examples 6 options Its page in the Azure CLI extensions reference
Examples
Attach an AKS managed cluster
az agentfabric aks attach --resource-group rgnetworksecurity --fabric-name testAIFabric --association-name testAssociation --location eastus --cluster-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaks/providers/Microsoft.ContainerService/managedClusters/testAksCluster --sku Premium --tags "{env:prod}"Identify--resource-groupName of resource group.--fabric-nameName of the parent Agent Fabric.--association-nameName of the ClusterAssociation child resource.--locationLocation.--cluster-resource-idThe AKS managed cluster or ACI SandboxGroup to enroll.--skuDetermines which AgentFabric components are deployed to the cluster.--tagsResource tags.Associate an ACI SandboxGroup
az agentfabric aks attach --resource-group rgnetworksecurity --fabric-name testAIFabric --association-name testSandboxAssociation --location eastus --cluster-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgaci/providers/Microsoft.ContainerInstance/sandboxGroups/testSandboxGroupIdentify--resource-groupName of resource group.--fabric-nameName of the parent Agent Fabric.--association-nameName of the ClusterAssociation child resource.--locationLocation.--cluster-resource-idThe AKS managed cluster or ACI SandboxGroup to enroll.Options
--association-name, --cluster-name, --name, -nName of the ClusterAssociation child resource.--cluster-resource-idThe AKS managed cluster or ACI SandboxGroup to enroll.--fabric-nameName of the parent Agent Fabric.--if-none-matchSet to "*" when creating an association to require that the resource does not already exist.--skuDetermines which AgentFabric components are deployed to the cluster.--tagsResource tags.