# Token for App agents that join the cluster via Azure managed identity.
# Allow blocks restrict the join to specific subscription / resource groups.
apiVersion: almaforge.com/v1
kind: Token
metadata:
  name: app-agent
spec:
  roles:
    - system:app # Token is only valid for agents joining as App services.
  azure: # Presence of this block selects the Azure managed-identity join method.
    allow:
      - subscription: '11111111-1111-1111-1111-111111111111' # Azure subscription containing the agent.
        resourceGroups:
          - 'apps-rg' # Restrict joins to this resource group.
