Skip to main content

Deployment

VirtualMetric DataStream Directors support flexible deployment options to match your infrastructure requirements and operational preferences. Whether you're running on physical hardware, virtual machines, or containerized environments, Directors can be deployed to optimize performance while maintaining data sovereignty.

For Director concepts, capabilities, and installation types, see Directors - Overview.

Options​

As Physical Server​

Deploy Directors directly on dedicated physical hardware for maximum performance and complete infrastructure control. This option provides maximum performance and resource allocation with complete control over hardware specifications. Without virtualization overhead, physical deployments are ideal for high-throughput environments.

Considerations

Physical server deployments involve higher infrastructure costs and maintenance overhead. They offer limited flexibility for resource scaling and require longer deployment and provisioning times.

As Virtual Machine​

Deploy Directors on virtual machines across various hypervisors and cloud platforms for balanced performance and flexibility. Virtual machine deployments offer flexible resource allocation and scaling with cost-effective resource utilization. They simplify backup and disaster recovery procedures and are platform agnostic, supporting VMware, Hyper-V, KVM, AWS, Azure, and GCP.

Considerations

Virtual machine deployments introduce slight performance overhead from virtualization and create dependency on hypervisor platform stability.

Recommended VM Specifications:

Workload SizeCPU CoresMemoryStorageNotes
Small2-4 cores8GB RAM50GBDevelopment/testing, < 10K EPS
Medium4-8 cores16GB RAM100GBStandard production, 10K-50K EPS
Large8+ cores32GB RAM200GB+High-volume production, > 50K EPS
Disclaimer

Actual requirements may vary depending on the workload.

By default, a Director's in-memory payload store holds up to 2 GB on a host with 16 GB of memory or less, or a quarter of the container's memory limit when that is less. On a larger host, it holds up to an eighth of the memory, but no more than 4 GB or 384 MB for each core, whichever is larger. An overloaded Director in memory mode uses about twice that limit in memory. On a host the Director shares with other work, set a lower limit with payload_store.memory_limit. See In-Memory Payload Store Limit in Service Configuration.

As Container​

Deploy Directors in containerized environments for modern infrastructure management and orchestration capabilities.

Docker deployments run as single-host containers with simplified dependency management. They offer easy scaling and updates, making them ideal for development and small production environments.

Kubernetes deployments provide multi-node orchestration with automatic scaling, built-in service discovery and load balancing. They support rolling updates with zero downtime and deliver enterprise-grade high availability and resilience.

Containerized deployments provide consistent deployment across environments with rapid scaling and resource optimization. They include integrated monitoring and logging capabilities and support DevOps-friendly CI/CD integration.

Platform-Specific Considerations​

On Linux​

Linux deployments offer performance advantages: network-based collectors (syslog, TCP, SNMP) operate more efficiently with lower resource overhead for network processing. Linux provides superior performance for high-volume data ingestion and native support for Unix/Linux system integration.

Agent Connectivity:

  • Windows Agent: Full support for Windows systems via VirtualMetric Agent with optional pre-processing
  • Linux Agentless: Complete support via SSH-based connections
  • Windows Agentless: Full support via WinRM protocols
note

Microsoft has announced plans to deprecate WinRM in future Windows releases. VirtualMetric continues to support WinRM-based agentless monitoring. Consider using VirtualMetric Agent for long-term Windows endpoint monitoring strategies.

Recommended For:

  • High-volume network data collection environments
  • Mixed Windows/Linux infrastructure monitoring
  • Cost-sensitive deployments requiring maximum efficiency

On Windows​

Agentless Connectivity:

  • Windows Agentless: Full support via WinRM protocols
  • Linux Agentless: Complete support via SSH connections
  • Universal Agent: Support for both Windows and Linux systems with optional pre-processing
note

Microsoft has announced plans to deprecate WinRM in future Windows releases. VirtualMetric continues to support WinRM-based agentless monitoring. Consider using VirtualMetric Agent for long-term Windows endpoint monitoring strategies.

Windows deployments provide native Windows service integration with Active Directory authentication support. They offer PowerShell-based management capabilities and seamless Windows ecosystem integration.

Recommended For:

  • Windows-centric environments
  • Organizations requiring agentless Windows monitoring
  • Environments with existing Windows management infrastructure

Installation Process​

Standalone Director Installation​

info

Directors are always created as standalone instances. To create a clustered deployment for high availability, first create Directors using this wizard, then group them using the Clusters tab. See Clusters for configuration details.

Navigate to Home > Fleet Management > Directors and click Create new director to begin the 6-step setup wizard.

General Settings​

Name:

Enter a unique identifier for the Director (3-64 characters). This name is used for identification across the platform.

Mode Selection:

Select the management approach using radio tiles:

  • Managed - VirtualMetric manages Director infrastructure with automated updates, proactive monitoring, and reduced operational overhead
  • Self-managed - User controls Director deployment with manual updates, custom security configurations, and full infrastructure control
  • Orchestrated - For auto-scaling cloud environments where instances are automatically managed, scaled, and replaced by the platform
  • Serverless - Runs on demand as a container without dedicated infrastructure, scaling automatically with load

For what each mode means operationally, see Platform Management Options. The mode cannot be changed after creation for Serverless Directors, and no other Director can be converted to serverless mode.

Self-managed Directors

A self-managed Director is indicated under the Mode column as Self-managed, with a warning icon when configuration has changed. Hovering over the icon displays a tooltip reading "Director configuration changed after last update. Please deploy the current configuration."

The actions menu contains a Download config option that downloads the vmetric.vmf file. Place this file under the <vm_root>\Director\config directory. Self-managed Directors skip access verification — monitor errors through the CLI or the files under <vm_root>\Director\storage\logs.

Container Type:

Selecting the Serverless mode reveals an additional required selection. It does not appear for the other three modes, and a container type cannot be submitted with them:

  • Docker - Lightweight containerized deployment. Runs anywhere Docker is available, ideal for single-host or self-managed setups
  • Kubernetes - Orchestrated container deployment. Scales across clusters with self-healing and rolling updates
  • Azure Container Instances - Serverless containers on Azure. Fast startup with no cluster to manage, suited for bursty or short-lived workloads
  • Azure Container Apps - Managed container platform on Azure. Built-in autoscaling and microservice support with managed identity integration

The container type determines the form of the deployment manifest generated in the Install and connect step, and it cannot be changed afterwards.

A new Serverless Director on Azure Container Apps or Kubernetes runs as a store cluster: every replica runs the queue and keeps copies of it. It does so in Persistent or Crash-resistant mode, when it keeps its Built-in queue in Azure Blob Storage, Amazon S3 or a network share and runs Director version 2.8.0 or later. See Store Cluster in Persistent Storage.

Managed Environment Settings:

Selecting Azure Container Apps adds an optional Managed environment settings block. By default the deployment manifest creates a managed environment for the Director, along with the virtual network it needs; the block also lets you point the Director at an existing environment instead. Click Show advanced settings to reveal the published ports (see Published Ports below) and, beneath them, the Autoscaling policy.

Selecting Kubernetes adds an optional Environment options block with the same published ports and Autoscaling policy, and a Service account and a Storage class setting (see Service Account and Storage Class below). The managed environment, and the choice of an existing one, are Azure Container Apps only.

Published Ports:

The published ports are stored as properties.serverless.exposed_ports. They renumber where each listener is published, keyed by the port the container listens on:

"serverless": { "exposed_ports": { "1514": "21514", "2020": "22020" } }

The container itself is never moved: a device bound to 1514 on a Director published as 21514 still binds 1514 (see Published is not the same as bound below). Azure Container Apps and Kubernetes accept the setting; Docker and Azure Container Instances refuse it, because they publish the listening port as it is.

RuleAzure Container AppsKubernetes
Where the mapping landsadditionalPortMappings[].exposedPort, each also an ARM template parameterThe Service's port (published) against its targetPort (listening), and the pod's hostPort when host ports are on — see Kubernetes Node Ports under Install and Connect
Reserved ports80 and 443, the platform's own ingressNone

On both, a key must be a port this Director publishes, and the proxy port is never renumbered. A value must be a port (1–65535), and two listeners cannot be published on one port. Kubernetes publishes the full default set — 1514 over UDP and TCP, which one key covers, 4317, 4318 and 6514 — plus the discovery port when discovery is enabled. Changing the mapping flags the deployment as out of date; the reinstalled manifest carries the new one.

On Kubernetes, re-apply the reinstalled manifest with server-side apply, as the first install does. The manifest begins with a comment that gives the command:

kubectl apply --server-side --force-conflicts -f <file>

A plain kubectl apply leaves syslog over TCP on its old port. Syslog listens on 1514 over both UDP and TCP, so the pod has two port entries with the same port number. A plain apply matches a container's ports by number alone: it moves the UDP entry's hostPort to the new port and leaves the TCP entry on the old one. Senders aimed at the new port then cannot connect over TCP, and nothing reports why. Server-side apply matches each port by number and protocol, so both entries move. The same command also repairs a Director that a plain apply has already left with syslog over TCP on the old port.

A Director first deployed with a plain kubectl apply switches to server-side apply the first time the command runs, with no extra step, unless that first server-side apply also changes the published ports. In that case the API server refuses the Service with Duplicate value errors for the port names. Apply the same file once with a plain kubectl apply -f <file>, then run the server-side command again. From then on, the server-side command alone is enough. That plain apply does not reset a replica count set by hand.

--force-conflicts lets the manifest overwrite a hand edit to a field the manifest sets, such as a CPU limit changed with kubectl edit, as a plain apply does. Without the flag, such an edit stops the whole Deployment from being applied.

Service Account:

Kubernetes only. By default the Director pod runs as the vmetric namespace's default ServiceAccount. Setting properties.serverless.service_account — an object, and {} is enough — has the manifest create a ServiceAccount named after the Director in vmetric and run the pod as it. Any other container type refuses the setting.

Its one option federates the account with an Azure managed identity through AKS workload identity:

"serverless": {
"service_account": {
"azure_workload_identity": {
"client_id": "<managed identity client ID>",
"tenant_id": "<tenant ID, optional>"
}
}
}
FieldRequiredDescription
client_idY, when azure_workload_identity is setThe managed identity's client ID, as a GUID. Rendered as the azure.workload.identity/client-id annotation on the account
tenant_idNThe identity's tenant, as a GUID. Needed only when it differs from the cluster's. Rendered as the azure.workload.identity/tenant-id annotation

An ID that is not a GUID is refused with a 400. The manifest carries all three pieces the feature needs: the annotated account, serviceAccountName on the pod, and the azure.workload.identity/use: "true" pod label that the AKS webhook keys on. Without the label nothing is injected.

The platform cannot create the Azure side. The cluster needs the workload identity add-on and the OIDC issuer enabled, and the managed identity needs a federated credential for the subject system:serviceaccount:vmetric:<director-name>. Changing any of these values flags the deployment as out of date, and the re-apply updates the account and rolls the pod.

Storage Class:

Kubernetes only. The optional Storage class field of the Environment options block, after Service account in the wizard and on the Director's Overview tab, names the storage class of the volume that keeps the Director's copy of its configuration. It is stored as properties.serverless.storage_class.

SituationWhat the manifest does
Storage class setA PersistentVolumeClaim of 1 GiB, ReadWriteMany, named <director-name>-config-copy, of that class, mounted at /opt/vmetric/config-copy
Storage class emptyNo claim. The Director keeps no copy of its configuration, and says so when it starts
Shared state on Azure Blob Storage or Amazon S3 whose secrets are not vault secretsNo claim: the copy lives in the shared state. The console hides the field
  • The name must be a Kubernetes object name: lowercase letters, digits, - and ., at most 253 characters and at most 63 between two dots, with each part between dots starting and ending with a letter or digit. The platform refuses any other value with a 400.
  • Only Kubernetes takes it. Every other container type refuses the key.
  • There is no default, because a claim whose class the cluster lacks keeps the pod Pending, so the Director never starts.
  • A change of the class flags the deployment as out of date, as the service account does.

Autoscaling Policy:

A serverless Director on Azure Container Apps decides for itself how many replicas it needs, and the scale rule in its deployment manifest follows that decision (see Serverless Deployment Manifest under Install and Connect). On Kubernetes the same fields drive a HorizontalPodAutoscaler instead — see Autoscaling on Kubernetes below. Four fields tune the decision, and a fifth, Minimum replicas, sets the fewest replicas the deployment manifest runs. The Autoscaling policy block is where you set them; each is stored as a node property under properties.autoscale in the Director's configuration, and the full key reference is Autoscale Policy in Service Configuration.

FieldKey under properties.autoscaleDirector defaultMeaning
Backlog per replicabacklog_per_replica10000Queued records one replica is expected to hold. The total backlog divided by this number is one estimate of the replicas needed
CPU target (%)cpu_target_percent75The CPU utilization to hold each replica at
Memory target (%)memory_target_percent0 (off)The memory utilization to hold each replica at
Maximum replicasmax_replicas0 (no ceiling)Ceiling on the replicas the Director asks for. The wizard pre-fills 2 — see below
Minimum replicasmin_replicas1 while nothing is saved. The platform saves 2 when it creates a Director on Azure Container Apps in persistent or crash-resistant mode, and nothing in memory mode or on KubernetesThe fewest replicas the deployment manifest runs, on Azure Container Apps and on Kubernetes. A request that creates a Director can ask for a number of its own. On an update, 0 or leaving the key out keeps the saved number, and a negative number is refused. The result is never above a positive max_replicas, or above the most replicas the manifest runs. Not offered for a Director in memory mode — see Why two replicas below

Each of the three targets yields its own estimate of the replicas the current load needs, and the highest wins. Whatever the estimates say, the Director never asks for fewer than one replica: it is a collector, and at zero replicas its listeners would be closed with nothing arriving to wake it.

On Azure Container Apps, a change to any of these fields reaches a running Director within seconds and takes effect on the replica set that is already serving, without a redeploy. That is why the policy is Director configuration rather than a setting in the deployment manifest there: on Azure Container Apps a scale rule is part of the app's revision template, so retuning a threshold there would create a new revision and restart every replica. Minimum replicas is the exception: it is part of the deployment manifest, so a change flags the deployment as out of date and takes effect at the next deployment.

Four behaviors are worth knowing before changing these fields:

  • Every field opens pre-filled. Backlog per replica, CPU target and Memory target open showing the Director's own default. A value equal to the default is displayed but not saved, so a Director you never tune keeps following its own defaults from release to release. Clearing a field has the same effect: it goes blank, the default reappears as greyed placeholder text, and the decision is left to the Director.
  • 0 is a real setting, and it means two different things. On the three targets, 0 stops that input counting toward the decision — it is not a target of zero percent. This is why memory is off by default: an idle Director already sits at roughly a quarter of its memory allocation and does not release memory promptly once a burst has passed, so with a memory target set, memory would drive every scaling decision and hold replicas up after the work is gone. Enable it only where memory is the constraint you actually scale on. On Maximum replicas, 0 means no ceiling — never "no replicas".
  • Maximum replicas is pre-filled with 2, and that value is saved. Unlike the three targets, this pre-fill is a policy of the wizard's own rather than the Director's default, so a Director created without touching the field is capped at two replicas. Raise the number, or enter 0 to remove the ceiling. Clearing the field to blank also removes the ceiling, but only until the panel is next opened and saved, when the pre-filled 2 returns — so 0 is the durable way to say "no ceiling". The ceiling can only ever reduce: the Container App's own maximum replica count, which the manifest sets to 10, still applies on top, and the smaller of the two wins, so a value above it changes nothing.
  • Scaling out does not drain an existing backlog. A new replica receives only new arrivals; records already queued on another replica stay there. Scaling out relieves incoming pressure rather than clearing a queue that has already built up, and when one replica holds nearly all of the backlog, the Director stops asking for more replicas on its account, because they would sit idle while that backlog does not move.

Enter whole numbers only; the two percentage fields accept values up to 100. A blank field is always valid.

Why two replicas for a new Director on Azure Container Apps. The platform saves min_replicas: 2 when it creates a Director on Azure Container Apps in persistent or crash-resistant mode, whichever way the Director is created, unless the request asks for a number of its own. The Director also gets a stop grace period of 300 seconds. Two replicas keep the Director running while one restarts or updates.

Two replicas for a new store cluster on Kubernetes, one for any other Director. A new Director on Kubernetes publishes no port on the node, so several of its pods can share a node (see Kubernetes Node Ports under Install and Connect). The platform saves min_replicas: 2 for a new store cluster, where every replica runs the built-in queue and keeps copies of it, because two copies of each stream need two replicas (see Store Cluster in Persistent Storage). It saves no number for any other new Director on Kubernetes, which then runs one replica. A request that creates a Director can ask for a number of its own, and a max_replicas of 1 keeps a store cluster at one replica.

A Director with host ports runs one replica unless asked. This applies to a Director created before release 2.8.0, and to one whose owner turned host ports on. Each of its replicas needs a node of its own, and the platform cannot see how many nodes a cluster has. On a cluster of one node, a second replica would never start, and no update would ever finish. To run more replicas, set Minimum replicas and give the cluster a node for each replica, or turn host ports off.

A Director created before Minimum replicas existed does not change. It has no saved value, so its manifest still renders one replica, and the deployment is not flagged as out of date. To give it two replicas, set Minimum replicas and apply the new manifest.

What one replica costs. One replica stays allowed: set Minimum replicas to 1. With one replica, the Director takes no records while that replica restarts, until the platform has replaced it. A crash of that replica in persistent mode can lose the records it confirmed and had not yet written to the store, which is up to one write interval of them (see Write Interval in Persistent Storage). Where one replica at a time runs the built-in queue, more replicas do not change that bound: the replica that runs the queue writes to the store every write interval, whichever replica takes the record. In crash-resistant mode, a crash loses no confirmed record, with one replica or with more, as long as the queue is kept on a disk or in a store that keeps it across a crash. A Director in memory mode starts with one replica, because it keeps nothing across a restart.

Autoscaling on Kubernetes:

A Director on Kubernetes scales in one of two ways. Which one depends on its queue:

Director on KubernetesWhat scales it
Director 2.8.0 or later, in persistent or crash-resistant mode, with the Built-in queue storage type (see Persistent Storage). Its replicas share one queue, as a store cluster or in shared modeThe Director sets its own replica count. Its manifest has no HorizontalPodAutoscaler
Any other DirectorA HorizontalPodAutoscaler (HPA) that the manifest creates

With both autoscaling targets at 0, autoscaling is off, and nothing changes the replica count.

The Director sets its own replica count. An HPA never asks the Director before it removes a pod, so it can remove the pod that holds the only in-sync copy of a stream. A Director whose replicas share one queue knows where its copies are, so it sets the replica count of its Deployment itself. It follows the same replica figure that the Azure Container Apps scale rule reads:

  • One replica acts for the whole Director: the one that leads the Director's coordination. It checks the figure and the Deployment every 30 seconds.
  • It adds replicas at once. One step adds up to four replicas, or up to as many as already run when more than four run.
  • It removes one replica at a time. It removes one only after the figure has asked for fewer replicas for 5 minutes, and at least 5 minutes after it last removed one. It removes none while a stream has only one copy in sync.
  • It keeps at least Minimum replicas (1 when nothing is saved) and at most Maximum replicas (10 when nothing is saved, or when it is 0).
  • The fields of the Autoscaling policy reach the Director in its configuration, as on Azure Container Apps. A change takes effect without a re-apply, and the deployment is not flagged as out of date. Setting both targets to 0 is the exception: it turns autoscaling off, which changes the manifest. The console doesn't offer Backlog per replica on Kubernetes, so the Director uses its default of 10000 unless backlog_per_replica is set through the API.
  • The cluster needs no metrics-server.

An earlier manifest created an HPA with the Director's name, and applying the new manifest does not delete it. The Director deletes that HPA itself, and says so in its log. It sets no replica count until the HPA is gone.

To change its own replica count, the Director needs a service account, a token and a Role in the cluster. The manifest asks for them (see Restrictive Kubernetes Clusters). If the cluster refuses, the Director keeps the replicas that run. It says why once: in its log, on its /health endpoint and on its page in the console. It tries again every 5 minutes, and it never restarts for this. Its page shows one of these warnings:

WarningWhy the Director can't change its replica countWhat to do
Autoscaling is blockedKubernetes doesn't allow its service account to change the countRe-install the Director and apply its new manifest. Then check that the cluster accepted the manifest's Role and RoleBinding. An admission policy can refuse them
Autoscaling isn't workingIt can't reach the Kubernetes API serverCheck that the cluster's network policies let the Director's pods reach the API server
Autoscaling isn't workingThe API server is busy or failingCheck the health of the cluster's API server
Autoscaling isn't workingIts pod has no service account tokenRe-install the Director and apply its new manifest, which gives the pod its token
Autoscaling isn't workingKubernetes refused its requests for another reason, for example because its Deployment was renamed or deletedRead the reason that Kubernetes gave in the Director's log in the cluster

Each warning gives the time when the problem started. Until it is fixed, the Director can't add replicas when its load grows.

A HorizontalPodAutoscaler scales every other Director. The HPA is a native autoscaling/v2 object rather than a KEDA rule, so the cluster needs nothing installed beyond metrics-server. An HPA cannot read the Director's configuration, so the platform renders the policy into the manifest, and the keys map differently there:

Key under properties.autoscaleAzure Container AppsKubernetes
cpu_target_percentWeighs the Director's own replica figureThe HPA's CPU averageUtilization (default 75). 0 leaves the CPU metric out
memory_target_percentWeighs the Director's own replica figureThe HPA's memory averageUtilization. 0, the default, leaves the memory metric out
max_replicasA ceiling below the platform's own maximum of 10The HPA's maxReplicas. 0 or unset gives the manifest's default of 10
min_replicasThe scale rule's minReplicasThe HPA's minReplicas
backlog_per_replica, sample_intervalDrive the Director's replica figureInert: nothing polls /scale on Kubernetes

The HPA's minReplicas comes from min_replicas, and is 1 when nothing is saved. The HPA removes pods only after the load has stayed lower for 5 minutes, and then at most one pod every 5 minutes. It still can't see the Director's copies, so it can remove the pod that holds the only in-sync copy of a stream.

Because the thresholds live in the manifest, changing one flags the deployment as out of date, and it takes effect only when the reinstalled manifest is re-applied. Updating the HPA restarts no pod.

  • Turning autoscaling off. With both targets at 0, the manifest has no HPA, no Role and no RoleBinding. The re-apply, server-side apply included, never deletes an object the new manifest stops naming. So on a running Director, an HPA from the earlier apply keeps scaling it on its old targets. Remove it after the re-apply:

    kubectl delete hpa <director-name> -n vmetric --ignore-not-found

    A Director first deployed with autoscaling off has no HPA to remove. A Director that set its own replica count has no HPA either, but it keeps the Role, the RoleBinding and the ServiceAccount it no longer uses. Remove them with these commands, and keep the ServiceAccount while serverless.service_account is set:

    kubectl delete role,rolebinding <director-name>-scale -n vmetric --ignore-not-found
    kubectl delete serviceaccount <director-name> -n vmetric --ignore-not-found
  • metrics-server must be running for the HPA. AKS and GKE run it by default; EKS does not. Install it, and confirm that kubectl top pods -n vmetric answers, before relying on the HPA. Without it the HPA reports <unknown> targets and holds the current replica count. A Director that sets its own replica count doesn't need it.

  • The Deployment sets no spec.replicas while the HPA or the Director sets the count, so a re-apply never resets the count they chose. With both targets at 0, spec.replicas is min_replicas when that is above 1. A Director deployed from the earlier manifest, which pinned one replica, and then scaled by hand keeps its count when the new manifest is applied with the server-side command (see Published Ports above), with no extra step. A plain kubectl apply would drop it back to one replica. A Deployment that was never scaled by hand runs one replica either way.

  • At most one replica per node with host ports. A pod with host ports publishes its ports on the node, so max_replicas must fit the node pool, and min_replicas must fit it too — see Kubernetes Node Ports under Install and Connect. A one-node cluster needs Minimum replicas and Maximum replicas at 1. Otherwise a second replica stays pending, and an update does not finish, because the new pod has no node to run on while the old pod keeps its ports. The old pod keeps serving in the meantime. Two replicas on two nodes update normally: an old pod stops first, and its new pod starts on the node it frees.

A node drain stops one pod at a time. The manifest of every Director on Kubernetes has a PodDisruptionBudget with maxUnavailable: 1. A node drain, a cluster upgrade or the cluster autoscaler then evicts one pod of the Director at a time, and only while its other pods are ready. A new member of a store cluster is ready once every stream has its in-sync copies again, so a drain usually waits for the copies too. The wait has a limit: when the number of streams and consumers without their copies has not fallen for 10 minutes, the new member reports ready anyway and lists them on its /health endpoint. A drain can then go on while a stream still has a single copy. The budget doesn't limit a scale-in or a rolling update, because both delete pods without an eviction.

A Director with one replica has no other pod to wait for. A drain evicts its only pod at once, and the Director takes no records until its new pod has started and is ready. To keep a Director running through drains, give it two replicas or more with Minimum replicas.

A Director deployed before release 2.8.0 gets these changes when its new manifest is applied: the budget, the slower scale-down of the HPA, and its own scaling when it runs Director 2.8.0 or later. Its page asks for the re-install once (see When the Director's Page Asks for a Re-install under Install and Connect).

Recovery:

The last block of the step shows for every mode. The Director always tries to repair itself first. If the director cannot repair itself decides what it does when no repair works without losing data:

  • Save a copy of the data and start clean - the default. The Director saves the data that it can't repair as a copy, and new logs keep flowing.
  • Stop and wait for support - the Director takes no new logs until a person acts. Either fix the cause, or use Recover now on the Director's Health tab.

If the Director joins a cluster that makes a choice, the cluster's choice applies instead. See The Recovery Setting in Recovery.

Access Management​

Configure optional access controls for the Director.

Access tokens:

  • Access tokens - Toggle to require token authentication
  • Token Name - Identifier for the token
  • Token Value - Auto-generated when token is created (use copy button to copy)
  • Expiration - Token validity period (default: 3 months):
    • 1 month
    • 3 months
    • 1 year
    • Unlimited

Access restriction:

Restrict which IP addresses can connect to the Director:

  • Restrict access - Toggle to enable IP filtering
  • Type:
    • Single IP/IP block - Single IP address or IP block
    • IP range - IP address range (start-end)
    • CIDR - CIDR notation (e.g., 10.0.0.0/8)
  • Trusted sources - List of allowed IP addresses/ranges

TLS and Data Integrity​

Select how TLS is managed for agent-to-director communication using radio tiles:

  • Auto-generated - The Director manages its own certificate authority (CA) and certificates
  • Custom certificate - The Director uses your certificate and private key, for organizations with an existing PKI
  • TLS offloading - TLS termination is handled by your load balancer

Each mode exposes its own fields, along with the agent communication port and, where applicable, the discovery endpoint used for agent enrollment. For the full field reference, the mode-to-proxy_tls mapping, and the certificate resolution order, see Transport Layer Security.

Data integrity: on Enterprise, the Data integrity section turns on LogChain: agents sign the data they queue, and the Director checks each upload before it stores it. See LogChain.

Serverless Directors are subject to stricter port rules, because these values are written into the deployment manifest as the container's exposed ports:

RuleApplies to
The agent communication port is mandatory and must be in the range 1-65535All container types
The discovery port is mandatory, and must differ from the agent communication port, when discovery is enabledAll container types
Ports 80 and 443 are rejectedAzure Container Apps only — the platform reserves them for its own ingress
Device listener ports must be among those the manifest publishesEnforced on Azure Container Apps and Azure Container Instances; advisory on Docker and Kubernetes — see Device Listener Ports below
No UDP listener port is publishedAzure Container Apps and Azure Container Instances only — their templates render the TCP subset, see Device Listener Ports below

The Director is created when this step is submitted, so a port that violates these rules is reported here rather than at deployment time.

Device Listener Ports​

A container Director receives device traffic only on the ports its deployment manifest publishes. These come from the install templates rather than from anything chosen when the Director is created:

Container TypePublished listener ports
Docker, Kubernetes1514/udp, 1514/tcp, 4317/tcp, 4318/tcp, 6514/tcp
Azure Container Instances, Azure Container Apps1514/tcp, 4317/tcp, 4318/tcp, 6514/tcp

The Docker and Kubernetes manifests are yours to edit, so a Director of either type can publish more than this. The Azure templates are deployed as rendered.

Neither Azure template publishes a UDP port

The two Azure container types are TCP-only for different reasons. Azure Container Apps ingress does not support UDP at all. Azure Container Instances does support UDP, but rejects a container group that publishes the same port number on both protocols, so the UDP twin of 1514 would fail the whole deployment. Either way both templates render the TCP subset only, so a device that listens on UDP cannot receive traffic on an Azure container Director. Because the syslog device's protocol defaults to udp, a syslog device created there without naming a protocol binds UDP 1514, reports itself Connected, and receives nothing.

None of the templates publishes port 514. The Director image runs as an unprivileged user, so a listener cannot bind 514 inside the container without platform-specific capability tweaks, which is why the defaults are 1514 and 6514. A platform can still publish an external 514 mapped onto the container's 1514 — the device's own port stays 1514.

A device whose listener port is not published is handled differently by container type:

Container TypeBehavior on save
Azure Container Apps, Azure Container InstancesRefused with DEVICE_LISTENER_PORT_NOT_PUBLISHED, naming the ports that Director does publish
Docker, KubernetesSaved with a warning — you apply these manifests yourself and may have added ports to the Compose file or the Service

The device creation wizard and the device's edit form report the same finding before anything is saved, under the Port field, and keep Next or Save changes disabled while a finding the save would refuse is shown. The check on save remains the backstop. See Devices: Management.

An update that changes neither the port, the transport, nor the bound Directors is downgraded to a warning, so an already-misconfigured device can still be edited. Self-managed, managed and orchestrated Directors publish nothing and constrain nothing. Outbound collectors — mssql, mysql, postgres, oracle, datagen, and the queue and object-store pulls — are exempt, because their port is the remote server's, not a local bind.

Published is not the same as bound

The published port is where senders aim; the bound port is where the device listens inside the container. Renumbering what Azure Container Apps publishes — 1514 to 21514, say — changes the address your senders use, but the device still listens on 1514 and its port must stay 1514.

Install and Connect​

Installation Scripts:

  • PowerShell Script - For Windows deployments
  • Bash Script - For Linux/macOS deployments
  • Copy Button - One-click copy to clipboard
  • API Key - Auto-generated secure authentication key included in scripts

Run the provided script with administrative privileges on the target system. The installation downloads and configures the Director service with automatic service registration and startup configuration.

Serverless Deployment Manifest:

Serverless Directors do not use an installation script. This step instead presents a complete deployment manifest for the container type selected in General settings, and the PowerShell/Bash selector is not shown — the manifest is the same regardless of the platform you apply it from:

Container TypeManifestApplied with
DockerA Compose service definitiondocker compose up
KubernetesA vmetric namespace, a Secret, a Deployment, a LoadBalancer Service and a PodDisruptionBudget. A Director that sets its own replica count also gets a ServiceAccount, a Role and a RoleBinding. Any other Director gets a HorizontalPodAutoscaler, unless both autoscaling targets are 0 (see Autoscaling on Kubernetes under General Settings). The manifest also has a ServiceAccount when serverless.service_account is set, and a PersistentVolumeClaim of the storage class when serverless.storage_class is set and the shared state does not already keep the configuration copy (see Storage Class under General Settings). The pod of a store cluster has two tolerations for a lost node (see A Lost Node below)kubectl apply --server-side --force-conflicts -f <file>, the first time and after every reinstall — see Published Ports under General Settings
Azure Container InstancesAn Azure Resource Manager template for a container group, with a public IP and DNS label. When the Director has no shared state on Azure Blob Storage or Amazon S3, or has one whose secrets are kept on the platform or in a vault, the template also creates a storage account named vmcc… with a 1 GiB Azure Files share, which keeps the Director's copy of its configuration. For a new Director, the template creates its storage location instead: a storage account named vmst… with a blob container named state, which keeps the copy too. See A Location the Install Template Creates in Persistent StorageAzure CLI or portal deployment
Azure Container AppsAn Azure Resource Manager template for a container app with external ingress and a scale rule that polls the Director's own /scale endpoint. When the Director has no shared state on Azure Blob Storage, Amazon S3 or a share, or has one on Blob Storage or S3 whose secrets are kept on the platform or in a vault, the template also creates a storage account named vmcc… with a 1 GiB Azure Files share for the Director's copy of its configuration, and a storage entry cc… in the managed environment that points at it. A Director whose shared state is a share keeps the copy there instead. For a new Director, the template creates its storage location: a storage account named vmst… with a blob container named state, which keeps the copy too. See A Location the Install Template Creates in Persistent StorageAzure CLI or portal deployment

Deleting the Director in the console does not delete what the manifest created. See What to delete in your cloud under Delete in Management.

The Docker and Kubernetes manifests carry the API key as the VMETRIC_CONFIG_HASH environment variable, supplied through the platform's own secret mechanism rather than as plain text. The Azure Container Instances and Azure Container Apps templates don't hold the key. Azure keeps every deployed template in the resource group's deployment history, so they ask for the key as the secure parameter configHash when you deploy them, and Azure keeps that value out of the history. The container name is derived from the Director name, reduced to lowercase letters, digits and hyphens and truncated to 32 characters so that it is valid on every supported platform.

Azure Permissions:

The account that deploys an Azure Container Instances or Azure Container Apps template needs two kinds of permission on the resource group that the template deploys into:

PermissionWhenBuilt-in roles that have it
Create and change resourcesAlwaysContributor or Owner
Assign rolesWhen the template creates the Director's storage location, unless you set assignStorageRole to false. On Azure Container Apps, also when enableSelfUpdate is trueOwner, User Access Administrator, or Role Based Access Control Administrator

The template creates the storage location of every new Director that doesn't name one (see A Location the Install Template Creates in Persistent Storage). So for a new Director, the usual choice is Contributor and Role Based Access Control Administrator on the resource group, or Owner.

The template gives the Director's managed identity these roles:

RoleScopeWhen
Storage Blob Data ContributorThe state container in the Director's vmst… storage accountWhen the template creates the storage location, unless assignStorageRole is false
Contributor, or the role in selfUpdateRoleDefinitionIdThe container appAzure Container Apps only, when enableSelfUpdate is true. See Self-Update on Azure Container Apps below

The template doesn't give the identity the roles that it needs on other services, such as a target or a device that the Director signs in to with its managed identity. Those roles are on the services' own pages.

A Director created before release 2.8.0 keeps its template as it was, and a redeploy of it assigns no storage role. The Docker and Kubernetes manifests assign no Azure roles.

Deploying with Contributor only. When the template creates the Director's storage location, set assignStorageRole to false. On Azure Container Apps, enableSelfUpdate turns off with it. After the deployment, someone with one of the roles that can assign roles grants the storage role once:

az role assignment create \
--assignee-object-id <principal ID> \
--assignee-principal-type ServicePrincipal \
--role "Storage Blob Data Contributor" \
--scope "/subscriptions/<subscription ID>/resourceGroups/<resource group>/providers/Microsoft.Storage/storageAccounts/<account>/blobServices/default/containers/state"
  • <account> is the value of the variable storageAccountName at the top of the template.
  • <principal ID> is the object ID of the container's system-assigned managed identity. On Azure Container Apps, it is the deployment's principalId output. On Azure Container Instances, read it with az container show -g <resource group> -n <container group> --query identity.principalId -o tsv.

Until the role is granted, the Director can't reach its storage. To grant the self-update role later as well, see Granting the role after the deployment below.

Least privilege for an automation principal. Give the principal Role Based Access Control Administrator with a condition. The condition below lets it assign only two roles, Storage Blob Data Contributor (ba92f5b4-2d11-453d-a403-e96b0029c9fe) and Contributor (b24988ac-6180-42a0-ab88-20f7382dd24c), and only to service principals. It also lets it remove assignments of these two roles only, whoever they were given to. Contributor is needed only when enableSelfUpdate is true.

((!(ActionMatches{'Microsoft.Authorization/roleAssignments/write'})) OR (@Request[Microsoft.Authorization/roleAssignments:RoleDefinitionId] ForAnyOfAnyValues:GuidEquals {ba92f5b4-2d11-453d-a403-e96b0029c9fe, b24988ac-6180-42a0-ab88-20f7382dd24c} AND @Request[Microsoft.Authorization/roleAssignments:PrincipalType] StringEqualsIgnoreCase 'ServicePrincipal')) AND ((!(ActionMatches{'Microsoft.Authorization/roleAssignments/delete'})) OR (@Resource[Microsoft.Authorization/roleAssignments:RoleDefinitionId] ForAnyOfAnyValues:GuidEquals {ba92f5b4-2d11-453d-a403-e96b0029c9fe, b24988ac-6180-42a0-ab88-20f7382dd24c}))

Pass it with az role assignment create … --condition-version 2.0 --condition "<condition>". A condition that allows only Contributor refuses the storage role, and the deployment fails.

Other permissions, only in some installs:

SituationWhat the deployer also needs
Azure Container Apps, with existingEnvironmentId naming an environment in another resource groupThe right to join that environment (Microsoft.App/managedEnvironments/join/action), which Contributor on that resource group includes
A user-assigned managed identity, because the Director's pipeline bus or storage location names a client IDManaged Identity Operator on the identity, when the identity is in another resource group
A resource provider that the subscription hasn't registeredSomeone with rights on the subscription registers it once: Microsoft.ContainerInstance or Microsoft.App, and Microsoft.Storage. Add Microsoft.Network when the Azure Container Apps template creates its environment

Values for the Azure Template:

For a Director on Azure Container Instances or Azure Container Apps, the console shows the values that the template asks for under the template, in a section named Values for the Azure template:

RowParameterShown for
API keyconfigHashEvery Director on Azure Container Instances or Azure Container Apps. The Director signs in to the platform with it
Scale rule access tokenscaleAccessTokenA Director on Azure Container Apps that has an access token. The scale rule sends it to the Director when it reads the Director's load

Each value is masked, with buttons to show it, copy it and download it.

  • The console shows the API key once. After you leave the page, it doesn't show it again. If you lose it, re-install the Director (Re-install director on the Connection settings tab) to get a new one. The re-install also gives you a new template.
  • The scale rule access token is the Director's own access token. The Access management tab shows it at any time, and a re-install doesn't change it.

Give each value when you deploy the template, in one of three ways:

  • Type it into the parameter's field when you deploy the template in the Azure portal.
  • Let az deployment group create ask for it. Leave the parameter out of the command, so that the value never lands in your shell's history.
  • Keep it in an Azure Key Vault, and name the secret in a parameters file with a Key Vault reference. The vault must allow template deployment, and you need the Microsoft.KeyVault/vaults/deploy/action permission on the vault, which the Owner and Contributor roles include.

The public API answers the same values when it creates a Director: the answer of POST /api/v1/directors carries templateSecrets, a list of parameter and value pairs. A deployment template that creates such a Director answers each value as a one-time output, named as the parameter (configHash, scaleAccessToken), beside the API key and the install script. See One-Time Outputs in Deploy: Deployments API.

When the Director's shared state signs in with a secret, such as a connection string, a storage key, a SAS token or an S3 secret key, the Azure templates don't hold that secret either. They mount a 1 GiB Azure Files share for the Director's copy of its configuration instead. A shared state that signs in with a managed identity holds no secret, and the templates are unchanged for it.

Directors installed from an older Azure template keep working, and the console doesn't ask you to re-install them. Their older deployment records in the resource group still hold the old API key, and the shared state's secret if it had one. To remove them:

  1. Re-install the Director, and deploy the new template with the new values.
  2. Delete the old deployment records. az deployment group list -g <resource group> lists them, and az deployment group delete -g <resource group> -n <deployment> deletes one. Deleting a deployment record deletes no resource.
  3. If the shared state signs in with a secret, such as a connection string, a storage key, a SAS token or an S3 secret key, rotate that secret where it was issued, and save the new one in the Director's settings.
warning

Reinstalling a Director issues a new API key and a new manifest. The previously issued manifest stops authenticating, so redeploy from the new one rather than reusing the old copy.

The Azure Container Apps scale rule

The Azure Container Apps manifest scales on the Director's own judgement. It carries a custom scale rule of type metrics-api that polls the Director's /scale endpoint and reads back the replica count the Autoscaling policy (see General Settings) has computed. Every replica reports the same replica-set-wide figure, so it does not matter which one answers the poll. The manifest also sets the platform's own bounds: at least min_replicas replicas, 1 when nothing is saved, and at most 10. Earlier versions of this manifest scaled on concurrent HTTP requests instead; a Director deployed from one of those keeps that rule until you reinstall it and redeploy from the new manifest.

The scale rule is an ordinary client of /scale, which sits behind the same access controls as the rest of the Director. When the Director has an access token, the template asks for it as the secure parameter scaleAccessToken, and keeps it in an app secret for the rule to present. The app secret is set once, when you deploy the template. A token rotated afterwards, or added to a Director that previously had none, does not reach the deployed rule, so the Director refuses the rule's reads. After 5 minutes without a read, the Director's page shows the warning Autoscaling isn't working. Reinstall the Director, and deploy the new template with the current token.

The scale rule reads /scale at the app's internal address, https://<app>.internal.<environment domain>/scale. IP rules that you set on the app's ingress in Azure don't apply to that address, so they don't stop the rule. A Director installed before release 2.8.0, and not reinstalled since, has a rule that reads the app's public address instead, and the IP rules can block that address. A reinstall moves the rule to the internal address. It keeps the app's IP rules, its client certificate mode, its custom domains and its CORS policy. For a Director that has run, the new template reads these settings from the app, so the app must still exist. If you deleted the app in Azure, set the template's appExists parameter to false before you deploy, or the deployment fails with ResourceNotFound.

A Director 2.8.0 or later on Azure Container Apps watches whether its scale rule reads its load. When no read has reached any of its replicas for 5 minutes, its page shows one of these warnings above every tab:

WarningWhyWhat to do
Autoscaling is blockedThe IP rules on the app's ingress in Azure refuse the address that the scale rule reads. This happens to a Director whose rule still reads the public addressReinstall the Director, and deploy the new template
Autoscaling isn't workingNo read came for another reason. For example, someone changed the scale rule in the Azure portal, the access token changed after the rule was deployed, or the Director still has the earlier rule that scales on concurrent HTTP requestsCheck the scale rule in the Azure portal. To restore the rule, reinstall the Director and deploy the new template

Autoscaling isn't working says since when no read has come. Until the reads come back, the autoscaler doesn't follow the Director's load. A Director whose rule reads /scale can't add replicas when its load grows. One that still has the earlier HTTP rule adds replicas only for concurrent HTTP requests. While the page is open, it reads the Director again every minute. So a warning appears, and goes away once the reads come back, without a reload. A Director on Kubernetes has warnings of its own with the same titles (see Autoscaling on Kubernetes under General Settings).

How the Kubernetes manifest scales the Director

A Director 2.8.0 or later whose replicas share the built-in queue, and whose autoscaling is on, sets its own replica count, between min_replicas and max_replicas (1 and 10 by default). Its manifest has no HorizontalPodAutoscaler. It has a ServiceAccount, a Role and a RoleBinding instead, which let the Director change the replica count of its own Deployment. The Autoscaling policy reaches the Director in its configuration, so a change to it takes no re-apply, and the cluster needs no metrics-server.

The manifest of any other Director scales with an autoscaling/v2 HorizontalPodAutoscaler named after the Director. It targets the Director's Deployment between min_replicas and max_replicas replicas (1 and 10 by default), on the CPU and memory targets of the Autoscaling policy, and needs metrics-server on the cluster. The thresholds are rendered into the manifest, so a change to them takes a re-apply.

See Autoscaling on Kubernetes under General Settings.

Kubernetes Node Ports:

A Director on Kubernetes publishes its ports through its LoadBalancer Service. The setting properties.serverless.host_ports decides whether its pod also publishes each port on the node, as a hostPort equal to the published port. This covers the proxy port, the discovery port and each listener.

"serverless": { "host_ports": false }
  • A new Director is saved with false, unless the request that creates it sets the key. Its pod publishes no port on the node.
  • A Director created before release 2.8.0 has no saved value, which means true. Its manifest keeps its host ports until its owner sets false.
  • Only Kubernetes takes the setting, and only true or false. Every other container type refuses it. The console has no field for it: set it in the Director's properties through the API. An update that leaves the key out keeps what is saved.
  • A change flags the deployment as out of date. Apply the reinstalled manifest after the change. The pods restart once.
What it changesWithout host ports (false)With host ports (true)
Sender addressesThe Service sets externalTrafficPolicy: Local. A device that sends to the load balancer arrives with its own address, over UDP and TCP, so access lists and log sources can match it. This works on AKS and GKE, and on EKS with a Network Load Balancer. The classic load balancer of EKS has no UDPThe Service keeps the default traffic policy, Cluster. A device that sends to the load balancer arrives with a node's address. Only a device that sends to a node's own address arrives with its own
Pods per nodeSeveral pods can share a node. The pods spread over the nodes where they can, so a node that stops takes as few of them as possibleAt most one replica per node. The Director can scale no further than the cluster has nodes, and a max_replicas above that leaves the surplus replicas Pending. Size max_replicas to the node pool
UpdatesAn update starts a new pod before it stops an old one. The old pod stops only when the new pod is ready, so a store cluster keeps all its members through an updateAn old pod stops before its new pod starts, because the new pod can't take the node's ports until then. Each replica is down briefly, one at a time, and a store cluster runs one member short through each step
Pod Security StandardsThe pod meets "restricted", the strictest built-in levelA namespace that enforces "baseline" or "restricted" refuses the pod, because both forbid host ports. The rollout then never finishes

Turning host ports off moves the Director's traffic. Devices that send to a node's own address stop reaching the Director. Devices that send to the load balancer start to arrive with their own address instead of a node's, which can change what an access list or a log source matches.

A cluster without a load balancer needs host ports. On a cluster without one, such as bare metal without MetalLB, the Service gets no external address. Devices outside the cluster can't reach the Director through it, and clients inside the cluster still can, through the Service's cluster address. Turn host ports on there, and point the devices outside at the nodes' addresses. A NodePort can't replace a host port, because NodePorts use ports 30000 to 32767 by default.

A Lost Node:

When a node is lost, Kubernetes replaces the pod of a store cluster sooner than other pods. In a store cluster, every replica runs the built-in queue and keeps copies of it (see Store Cluster in Persistent Storage). Kubernetes marks a node as unreachable or not ready about 40 to 50 seconds after the node's last heartbeat. A pod of a store cluster stays bound to that node for 30 seconds more, instead of the 300 seconds that Kubernetes gives by default. Kubernetes then evicts the pod, and the Deployment starts its replacement. The manifest does this with two tolerations in the pod:

tolerations:
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: 30
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: 30

The other members of the store cluster take the records during the whole wait. The shorter time changes only how soon the cluster has all its members again. The manifest of any other Director on Kubernetes has no tolerations, so its pod stays on a lost node for 300 seconds.

  • The time is in the manifest. It is not a setting in the console or the API. To use another time, change tolerationSeconds in the manifest before you apply it.
  • A store cluster deployed before release 2.8.0 gets the tolerations when its new manifest is applied.
  • A shorter time has a cost. A node whose network is gone for longer than about 70 to 80 seconds (the 40 to 50 seconds, plus 30) comes back to a pod that Kubernetes has marked for deletion. Its Director then restarts, although it could have gone on. If your nodes often lose their network for that long, set a longer time.

When the Director's Page Asks for a Re-install:

The page of a Director on Kubernetes, Azure Container Apps or Azure Container Instances shows Re-install director to apply changes when its deployment is out of date. The platform would then render a different manifest from the one that the Director was installed with. There are three causes:

  • A deployment setting changed, such as the published ports, the service account, host ports, or an autoscaling field that the manifest renders. The page shows the notice as soon as the setting is saved, and only when the manifest really changes. For example, the autoscaling fields of a Director that sets its own replica count reach the Director directly. They don't change its manifest, so they don't ask for a re-install.
  • A platform update changed the manifest template.
  • The Director's version changed to a release whose manifest is different, such as a Kubernetes Director that moves to 2.8.0 and starts to set its own replica count.

The platform checks for the last two causes when it starts, every hour, and after every version change made in the console or through the API. The comparison leaves out the API key, the access token of the scale rule and the secrets of the shared state. So when one of these secrets is rotated, the page doesn't ask for a re-install. The notice says that the deployment settings changed on a date, whatever the cause. When the platform found the change itself, that date is when it found it.

To act on it, click Re-install director, then apply the new manifest or deploy the new template. On Kubernetes, use the server-side apply command (see Published Ports under General Settings). The re-install issues a new API key, as the warning above says.

While a Director on Azure Container Apps waits to move its queue off its containers' disks, or is ready to, the page doesn't show this notice. The move's own notice says when to re-install (see Moving an Older Director's Queue Off Its Containers' Disks).

After the update to release 2.8.0, the page of every Kubernetes Director installed before it asks for a re-install once, because the Kubernetes manifest changed in that release. A Director on Azure Container Apps or Azure Container Instances is not asked, and neither is a Director that was never installed.

Self-Update on Azure Container Apps:

Restarting an Azure Container Apps Director does not update it: Container Apps restarts the container inside the replica it already has, and that replica keeps the image it booted with. A new version arrives only when the replica is replaced, which is what a revision restart does (see Update Management Tab under Management). Two template parameters let the Director restart its own revision, so that Restart to apply update in the console updates it with one click, and the console can roll it back to an older version:

ParameterDefaultDescription
enableSelfUpdateThe value of assignStorageRole, which is true unless you set it to false, for a Director whose storage location the install template creates. false for any other Director, such as one created before release 2.8.0Grants the app's system-assigned managed identity a role on this one container app (nothing on the resource group), and passes the app its subscription and resource group. On an update the Director then restarts its own revision
selfUpdateRoleDefinitionIdb24988ac-6180-42a0-ab88-20f7382dd24c (built-in Contributor)The role granted to the app's identity, scoped to this one app. Used only when enableSelfUpdate is on

The template of a Director whose storage location it creates has a second role parameter, assignStorageRole. It gives the identity the Storage Blob Data Contributor role on the Director's storage container. Both roles need the same right to assign roles, so enableSelfUpdate follows assignStorageRole by default.

Every Azure Container Apps Director has a system-assigned managed identity, whether or not enableSelfUpdate is on. The deployment's principalId output is that identity's object ID: grant roles to it once the deployment has finished.

Turning enableSelfUpdate on requires the right to assign roles. Azure Permissions above says which roles have that right, and what to do when the deployer has Contributor only.

warning

Without the right to assign roles, a deployment with enableSelfUpdate=true fails partway: the container app is created, then the role assignment step fails with an authorization error. For a Director whose storage location the template creates, enableSelfUpdate is on by default. Set assignStorageRole to false, and enableSelfUpdate turns off with it. For any other Director, leave enableSelfUpdate at its default, false. Then have an administrator grant the role after the deployment, or get the right role first.

Granting the role after the deployment:

An administrator can grant the role once the deployment has finished. A Director whose storage location the template creates finds the role within a few minutes, with no redeploy. Any other Director finds it only when it was deployed with enableSelfUpdate=true.

Grant the role in selfUpdateRoleDefinitionId (Contributor by default) to the identity in the deployment's principalId output, scoped to the container app:

az role assignment create --assignee-object-id <principalId> --assignee-principal-type ServicePrincipal --role Contributor --scope <container-app-resource-id>

Until the role is granted, apply each update with az containerapp revision restart, and the console can't roll the Director back. See Update Management Tab under Management.

To let an automation principal assign this role and the storage role, and no other, use the condition under Least privilege for an automation principal in Azure Permissions above.

To grant the app only what an update needs instead of Contributor, create this custom role once at subscription scope and put its GUID in selfUpdateRoleDefinitionId:

{
"Name": "VirtualMetric Director Self-Update",
"Description": "Restart a Container Apps revision so it pulls a new image.",
"Actions": [
"Microsoft.App/containerApps/revisions/restart/action",
"Microsoft.Authorization/permissions/read"
],
"AssignableScopes": ["/subscriptions/<subscription-id>"]
}

The Director needs the second action to check that it may restart its container app. Without it, the Director can't check, and it restarts itself only when it was deployed with enableSelfUpdate=true.

The condition under Azure Permissions allows Storage Blob Data Contributor and Contributor only. If the deployer holds Role Based Access Control Administrator with that condition, put the custom role's GUID in place of Contributor's, b24988ac-6180-42a0-ab88-20f7382dd24c, in both GuidEquals clauses. Keep Storage Blob Data Contributor's GUID beside it. Otherwise Azure refuses one of the role assignments.

note
  • Turning enableSelfUpdate on for an app that is already deployed changes the revision, so also set a new revisionSuffix in the same deployment, or Azure refuses it as a clashing revision.
  • A Director deployed before these parameters existed cannot update from the console until it is redeployed once with enableSelfUpdate=true. The update logic runs in the Director being updated.
  • In the first minutes after deployment an update can fall back to a plain restart while Azure propagates the new role assignment. The Director logs the reason, and the next attempt works.

Logs on Azure Container Apps:

On Azure Container Apps, a Director writes only its Error and Warning lines to its console by default, whatever its log level. It also writes the few lines that report its startup, such as Startup: waiting for its configuration from the VirtualMetric platform (awaiting_config). Azure's log of the container keeps only these lines. That log is the container app's Log stream in the Azure portal, and Log Analytics.

The Director's other lines, up to its log level, reach the Console logs tab of its page through the Director's own connection to the platform. The tab never reads the container's console. But it shows lines only during a capture that someone runs on it, with that capture's severities and filter, and it shows nothing from before the capture (see Console Logs). So by default, an Information line that the Director writes while no capture runs is kept nowhere.

To keep the other lines in Azure's log too, set the environment variable VMETRIC_CONSOLE_LEVEL on the container app's container. Saving it starts a new revision, which reads it:

ValueWhat the Director writes to its console
information or infoErrors, Warnings and Information lines. This is the history that most people want
allEvery line that the Director's log level lets through
error, warning or warn, debug, or verboseThe lines up to that level, and no more than the Director's log level lets through
Not set, or any other valueErrors and Warnings only, and the startup lines, as warning does. With a value that isn't one of these, the Director's first lines say that the value is unknown

VMETRIC_CONSOLE_LEVEL never writes more lines than the Director's log level lets through. So to keep Information lines in Azure's log, set the Director's log level to Information too. The log level is the Log level on the Director overview tab (see Director Overview Tab in Management), unless VMETRIC_LOG_LEVEL or debug.level sets another.

The message queue's own debug and trace lines, which vmmq.debug turns on, go only to the console. They never reach the Console logs tab. On Azure Container Apps they show nowhere unless VMETRIC_CONSOLE_LEVEL is debug, or verbose or all for the trace lines.

A Director on Docker, Kubernetes or a host writes every line of its log level to its console, and ignores VMETRIC_CONSOLE_LEVEL.

Connection Verification:

After running the installation script, verify Director connectivity:

  • Connecting - Director attempting initial connection
  • Success - Director successfully connected to platform
  • Failed - Connection attempt unsuccessful

Real-time connection status updates with visual indicators for each state.

If the Director is not yet connected, click Connect later to proceed without connection verification and return later to verify the connection.

Update Management​

Configure the Director's update policy. By default the organization-level update settings apply; enable the Custom update policy toggle to override them for this Director. See Updates for the policy options.

Review and Complete Setup​

A read-only summary of the values entered in the preceding steps. Click Complete setup to finalize the Director and navigate to its detail view.

The wizard displays a 6-step progress indicator (General settings > Access management > TLS and data integrity > Install and connect > Update management > Review and complete setup). Click completed steps to navigate back. Invalid steps are marked with an error indicator.

Navigation Buttons:

  • Cancel - Exit wizard (first step)
  • Next Step - Advance to next step with validation
  • Create director - Submit Director configuration and proceed to connection (from the Access management step; shown as Update director when returning to that step after creation)
  • Connect later - Skip connection verification (Install and connect step)
  • Back - Return to the previous step
  • Complete setup - Finalize Director creation (final step)

Network Requirements​

Critical: Pre-Installation Network Access

Before running installation commands, ensure the target system has outbound HTTPS access to both dl.vget.me and virtualmetric.blob.core.windows.net. The installation scripts are served from dl.vget.me, which then redirects every binary download to virtualmetric.blob.core.windows.net. If either host is blocked by firewall rules, installation will fail silently or with connection errors.

Outbound Connectivity:

  • Port 443 (HTTPS) to dl.vget.me for the installation script and the binary download redirect
  • Port 443 (HTTPS) to virtualmetric.blob.core.windows.net for the binaries themselves
  • Port 443 (HTTPS) for DataStream cloud platform communication
  • DNS resolution for dl.vget.me, virtualmetric.blob.core.windows.net and api-service.*.cloud.virtualmetric.com domains, and for your region's direct Azure address (see Firewall Configuration)

The Director keeps using both download hosts after installation: it downloads its own updates, the Agent binaries it serves to its Agents, and, the first time a Website device needs it, the Chromium browser that device loads pages in, from dl.vget.me, which redirects them to virtualmetric.blob.core.windows.net in the same way. A firewall that already allows Azure Storage (*.blob.core.windows.net, or the Storage service tag) needs only the dl.vget.me entry. A Director that cannot reach dl.vget.me or virtualmetric.blob.core.windows.net needs its Agent binaries, and the browser if it runs Website devices, copied to it by hand: see Agent Binaries Without Download Access and Website Browser Without Download Access.

Serverless Directors

Serverless Directors do not download an installation script, so they need neither download host to start. The container platform pulls the Director image from Docker Hub instead, and that registry must be reachable from wherever the manifest is deployed. A Serverless Director that serves Agents still downloads their binaries from dl.vget.me, which redirects them to virtualmetric.blob.core.windows.net, so it needs both hosts. Platform communication over port 443 applies as it does to every other mode.

warning

TLS certificate validation requires accurate system time. Ensure NTP is configured and the system clock is synchronized before installation.

Agent Binaries Without Download Access​

From version 2.7.0, a Director downloads each Agent binary from dl.vget.me the first time it needs it. That happens when an Agent is installed from the Director or updates itself, and when the Director installs an Agent over SSH or WinRM. The Director downloads the binary of its own version, and keeps it under <vm_root>/Director/package/agent/<os>/<arch>/. <vm_root> is the folder the Director was installed under: /opt/VirtualMetric on Linux and macOS, and C:\Program Files\VirtualMetric on Windows, unless you chose another folder at installation.

A Director that cannot reach dl.vget.me or virtualmetric.blob.core.windows.net, such as a self-managed Director in an isolated network, cannot download them. Download the binaries on a computer that can, and copy them to the Director:

  1. Find the Director's version. In <vm_root>/Director, run ./vmetric-director -version, or .\vmetric-director.exe -version on Windows.
  2. For each platform the Director's Agents run on, download the binary and its signature. Replace {version} in the URLs below with the Director's version, for example 2.7.0.
  3. Copy both files into the platform's folder under <vm_root>/Director/package/agent/, using the file names below. Create the folder if it does not exist. The Director serves them from the next request, without a restart.
PlatformBinary URLSignature URLFolderFile names
Linux x64https://dl.vget.me/versions/{version}/agent/linux/amd64https://dl.vget.me/versions/{version}/agent/linux/amd64/signlinux/amd64vmetric-agent, vmetric-agent.sig
Linux ARM64https://dl.vget.me/versions/{version}/agent/linux/arm64https://dl.vget.me/versions/{version}/agent/linux/arm64/signlinux/arm64vmetric-agent, vmetric-agent.sig
Windows x64https://dl.vget.me/versions/{version}/agent/windows/amd64https://dl.vget.me/versions/{version}/agent/windows/amd64/signwindows/amd64vmetric-agent.exe, vmetric-agent.exe.sig
Windows ARM64https://dl.vget.me/versions/{version}/agent/windows/arm64https://dl.vget.me/versions/{version}/agent/windows/arm64/signwindows/arm64vmetric-agent.exe, vmetric-agent.exe.sig
macOS Intelhttps://dl.vget.me/versions/{version}/agent/darwin/amd64https://dl.vget.me/versions/{version}/agent/darwin/amd64/signdarwin/amd64vmetric-agent, vmetric-agent.sig
macOS Apple siliconhttps://dl.vget.me/versions/{version}/agent/darwin/arm64https://dl.vget.me/versions/{version}/agent/darwin/arm64/signdarwin/arm64vmetric-agent, vmetric-agent.sig
Oracle Solaris x64https://dl.vget.me/versions/{version}/agent/solaris/amd64https://dl.vget.me/versions/{version}/agent/solaris/amd64/signsolaris/amd64vmetric-agent, vmetric-agent.sig
IBM AIX (POWER)https://dl.vget.me/versions/{version}/agent/aix/ppc64https://dl.vget.me/versions/{version}/agent/aix/ppc64/signaix/ppc64vmetric-agent, vmetric-agent.sig

For example, to download the Linux x64 Agent for a version 2.7.0 Director:

$version = "2.7.0"
Invoke-WebRequest "https://dl.vget.me/versions/$version/agent/linux/amd64" -OutFile vmetric-agent
Invoke-WebRequest "https://dl.vget.me/versions/$version/agent/linux/amd64/sign" -OutFile vmetric-agent.sig

Then copy both files to <vm_root>/Director/package/agent/linux/amd64/ on the Director.

note

Copy the signature as well as the binary. An Agent checks the signature before it updates itself, and refuses an update without one.

Copy the binaries again after each Director update

Use the binaries of the Director's own version. An Agent never updates to a version newer than its Director's. After you update a Director that cannot reach dl.vget.me, copy the binaries of its new version too, or its Agents stay on the old version. When a Director can reach dl.vget.me and virtualmetric.blob.core.windows.net again, it checks the binaries that were copied by hand against its own version, and replaces any that do not match.

Website Browser Without Download Access​

From version 2.7.0, a Director with Website devices and no browser.path set in its vmetric.yml downloads open-source Chromium from dl.vget.me the first time one of them needs it, and again after each Director update, and unpacks it into <vm_root>/Director/package/chrome. A Director that cannot reach dl.vget.me or virtualmetric.blob.core.windows.net needs the browser copied there by hand, with its files at the folder's root. Download the zip for the Director's own version and system on a computer that can reach them:

https://dl.vget.me/versions/{version}/browser/{os}/amd64

{os} is linux or windows; a mirror named in update.origin serves the same path. Only Linux x64 and Windows x64 Directors download a browser. For the supported platforms, the system libraries Chromium needs on Linux, and what a check says without a browser, see The Director's Browser.

Installation Script Delivery​

The installation commands use dl.vget.me as the script delivery endpoint. This URL serves platform-appropriate installation scripts based on the requesting client:

ClientScript ServedCommand Example
PowerShellinstall.ps1$h="<apiKey>"; iwr dl.vget.me | iex
curl/wgetinstall.shcurl -sL dl.vget.me | h="<apiKey>" bash
BrowserRedirects to virtualmetric.comN/A

The scripts automatically:

  1. Detect the operating system (Windows, Linux, macOS, FreeBSD, etc.)
  2. Detect the CPU architecture (amd64, arm64)
  3. Download the appropriate Director binary from dl.vget.me/director/{os}/{arch}, which redirects to virtualmetric.blob.core.windows.net
  4. Configure the Director with the provided API key
  5. Install and start the service

Supported Platforms:

Operating SystemArchitectures
Windowsamd64, arm64
Linuxamd64, arm64, 386, ppc64, ppc64le
macOS (Darwin)amd64, arm64
FreeBSDamd64, arm64
Other Unixamd64, arm64
Customizable Download URL

For environments where dl.vget.me is not accessible, the download URL can be configured via the VITE_INSTALLATION_DOWNLOAD_URL environment variable in self-hosted deployments.

Inbound Connectivity:

  • Configure based on data source requirements
  • Ports as defined in device configurations

Firewall Configuration​

Outbound Rules (Required):

  • Allow HTTPS (443) to dl.vget.me (installation scripts, and the redirect for binary downloads)
  • Allow HTTPS (443) to virtualmetric.blob.core.windows.net (binaries, which dl.vget.me redirects to)
  • Allow HTTPS/WebSocket Secure (443) to api-service.eu-west.cloud.virtualmetric.com (platform communication - Europe)
  • Allow HTTPS/WebSocket Secure (443) to api-service.aus-east.cloud.virtualmetric.com (platform communication - Australia)
  • Allow HTTPS/WebSocket Secure (443) to api-service.us-east.cloud.virtualmetric.com (platform communication - US)
  • Allow HTTPS/WebSocket Secure (443) to api-service.me-qatar.cloud.virtualmetric.com (platform communication - Qatar)
  • Allow DNS queries for name resolution
  • Allow NTP for time synchronization

If a director cannot reach its region's api-service address, it tries a direct Azure address for the same region, also on port 443. Allow that address too, or the director loses the fallback:

RegionPlatform addressDirect Azure address
Europe (eu-west)api-service.eu-west.cloud.virtualmetric.comvm-eu-west.francecentral.cloudapp.azure.com
US (us-east)api-service.us-east.cloud.virtualmetric.comvm-us-east.eastus.cloudapp.azure.com
Australia (aus-east)api-service.aus-east.cloud.virtualmetric.comvm-aus-east.australiaeast.cloudapp.azure.com
Qatar (me-qatar)api-service.me-qatar.cloud.virtualmetric.comvm-me-qatar.qatarcentral.cloudapp.azure.com

A director only ever tries its own region's addresses, never another region's, so its data stays in the region you chose. Directors released before the Qatar region was added cannot connect to me-qatar: install a current version there.

Firewall Rule Order

If your firewall processes rules in order, ensure the dl.vget.me and virtualmetric.blob.core.windows.net rules are evaluated before any blanket deny rules. Installation will fail if the target system cannot reach either endpoint.

Inbound Rules (As Needed):

  • Open ports for configured data collection protocols
  • Allow management access (SSH for Linux, RDP for Windows)
  • Configure source restrictions based on security policies

Restrictive Kubernetes Clusters​

A Kubernetes cluster can refuse what a Director's manifest asks for. An admission policy can refuse a Role, a Pod Security Standard can refuse a pod, and a NetworkPolicy can block the pod's way to the API server. What a Director needs from the cluster depends on its settings:

SettingWhat the cluster must allow
Autoscaling off (both targets 0)Nothing more. The manifest has no Role, no RoleBinding and no HorizontalPodAutoscaler, and the pod mounts no service account token (automountServiceAccountToken: false)
The Director sets its own replica count (see Autoscaling on Kubernetes under General Settings)A ServiceAccount named after the Director, with its token mounted in the pod (automountServiceAccountToken: true). A Role named <director-name>-scale and a RoleBinding to that account. The Role allows get and patch on the Director's own deployments/scale, and get and delete on the horizontalpodautoscalers of the same name. All of it is in the vmetric namespace and limited by name, and nothing is cluster-wide. The pod must also reach the Kubernetes API server, so a NetworkPolicy must allow that
A HorizontalPodAutoscaler scales the Directormetrics-server, which reports the CPU and memory of the pods. The pod mounts no service account token
Host ports on (serverless.host_ports: true)Host ports. The Pod Security Standards "baseline" and "restricted" refuse a pod with host ports, so the Director can't run in a namespace that enforces either level. Without host ports, the pod meets "restricted" (see Kubernetes Node Ports under Install and Connect)

When the cluster refuses what a Director needs to set its own replica count, the Director keeps the replicas that run, and its page shows a warning that says what to do. See Autoscaling on Kubernetes under General Settings.

The kubernetes pipeline processor. The Kubernetes processor reads pod metadata from the Kubernetes API server. It needs a token, and permission to list and watch pods in every namespace, which takes a ClusterRole and a ClusterRoleBinding. The manifest doesn't create either of them, and it mounts a token only for a Director that sets its own replica count. To use the processor on a Director on Kubernetes:

  1. Set serverless.service_account, so that the pod runs as a ServiceAccount named after the Director (see Service Account under General Settings).
  2. Create a ClusterRole that allows list and watch on pods, and bind it to that account with a ClusterRoleBinding.
  3. If the Director doesn't set its own replica count, change automountServiceAccountToken to true in the manifest before you apply it. Make the same change each time you apply a reinstalled manifest.

Moving an Older Director's Queue Off Its Containers' Disks​

Some Serverless Directors on Azure Container Apps keep their queue on their containers' own disks. These are Directors in the Persistent or Crash-resistant mode that were created before the platform required a storage location for the queue, and that keep their queue inside the Director. A new Director keeps its queue in its storage location (see Persistent Storage).

Why the queue is at risk:

A container's disk doesn't outlive the container. Azure Container Apps gives a container a new, empty disk each time it restarts or replaces it, as in an update, and a scale-in removes a replica together with its disk. So a replica that keeps its queue on its container's disk loses what the queue holds when the container goes.

On version 2.8.0 and later, the stop of such a replica waits until its queue has reached the targets, within the replica's stop time. The stop time depends on the template the Director was deployed from. The current template gives a Director in the Persistent or Crash-resistant mode 300 seconds to stop, and the Director uses 285 of them. An older template that sets no stop time leaves Azure's 30 seconds, and the Director then uses 25. When the time runs out, the stop goes on, and the Director logs what it left on the disk. A crash still loses what the queue holds, and so does a stop while a target doesn't take records.

How the move works:

Nothing copies the queue. Each replica has a queue of its own, and a healthy replica's queue is nearly empty. So each old replica delivers what it holds as it stops, while the new replicas keep their queue in the storage location. The replicas go on taking records the whole time. A notice on the Director's page leads you through the steps, and says what each step waits for. See Moving the Queue to a Storage Location in Management.

  1. Update the Director to the latest version. That version delivers its queue as it stops, and tells the platform how far the move is.
  2. Choose a storage location under Manage general settings: Azure Blob Storage, Amazon S3 or an Azure Files share. The same save moves the queue to the built-in queue. The running replicas change nothing yet: each one keeps its queue on its disk until it starts in a new container.
  3. Wait until the queue is ready to move. A replica is ready when it can deliver what its queue holds in half of its stop time. The move is ready when every connected replica is ready. A target that is down or slow keeps the move waiting.
  4. Re-install the Director, and deploy its new template in Azure. The new containers start on the storage location. Each old container stops taking records, and delivers what it holds as it stops.

If you never deploy, the running replicas go on as they are.

Things to know before you start:

  • In the update of step 1, the old version stops without waiting for its queue, so the update loses what the queue holds at that moment. Update when the backlog is small.
  • Save the storage location shortly before you deploy, and keep the number of replicas fixed until the deploy is done. A replica that starts in a new container after the save, such as one that a scale-out adds, starts on the storage location. Until the deploy, the old replicas and the new ones coordinate apart. A device that runs on one replica at a time, such as a poller, can then run in both groups and send its records twice. Devices that receive records from their senders, such as syslog or HTTP, are not affected.
  • Deploy soon after the notice says that the queue is ready. If the queue grows again first, a replica may not deliver all of it within its stop time. The replica logs how many batches it left.
  • The new replicas take the devices' saved positions from the platform during the first 24 hours after the Director first runs on its storage location. A device that first starts after that starts with no saved position.
  • A route that sends on a schedule keeps its batch until its next flush. The stop doesn't wait for that batch, so a container that goes takes it with it.

Security and Performance​

Security Considerations​

Deploy Directors in appropriate network segments and implement network access controls and monitoring. Use dedicated service accounts with minimal privileges and enable logging and audit trails for security monitoring. Implement encryption for data at rest and in transit, and maintain regular security updates and patch management.

Performance Optimization​

Monitor CPU and memory utilization patterns and allocate sufficient disk space for logging and buffering. Configure appropriate network interface capacity and plan for peak load scenarios and growth.

For data processing efficiency, optimize YAML pipeline configurations for performance and implement efficient parsing and transformation rules. Use appropriate batch sizes for different data sources and monitor processing latency and throughput metrics. Consider Agent pre-processing for high-volume deployments to distribute processing load.

When you size a small disk, count the Director's reserve file too. The Director keeps this file beside its built-in queue, and gives its space back when the disk is full. It takes 128 MiB on a disk of 6.25 GiB or more. On a smaller disk, it takes 2% of the disk, but never less than 112 MiB. The stored data can't use that space. See The Reserve File in Recovery.

High Availability Planning​

Maintain regular configuration backups and version control. Document recovery procedures and test them regularly. Implement monitoring and alerting for service health and plan for disaster recovery scenarios.

For redundancy, group Directors into clusters for automatic failover and load balancing. See Clusters for configuration details and quorum requirements. Consider geographic distribution for disaster recovery and plan for seamless failover procedures.

Advanced Deployment Scenarios​

Multi-Site Deployments​

For organizations with multiple locations or data centers, deploy Directors at each site for local data processing. Implement centralized configuration management and coordinate routing and aggregation strategies. Plan for inter-site connectivity and failover.

Compliance and Regulatory Requirements​

For regulated industries requiring specific compliance, implement appropriate data retention and disposal policies. Configure audit logging and compliance reporting, ensure data sovereignty and jurisdictional requirements are met, and plan for regulatory audit and inspection procedures.

Scalability Planning​

As your environment grows, monitor resource utilization and performance trends. Plan for vertical scaling (more resources per Director) or horizontal scaling (clustering multiple Directors). Implement capacity planning and forecasting procedures to determine when to transition from standalone to clustered deployments.