IMD SolutionComputing LibraryShop main store

How-to

Deploying PI AF and PI Vision across two Windows domains

Edge computing and IIoT Published 9 min read

Short answer

Keep the PI Data Archive, the AF server, PI Vision and the SQL Server hosting its database in one domain when you can. If the archive stays in Domain A, treat Domain B as an identity design: set the trust direction, choose service identity or Kerberos delegation, and prove all five connections from their originating hosts.

On this page
  1. Should PI AF and PI Vision share a domain with the PI Data Archive?
  2. What exactly sits in Domain A today?
  3. Can Domain B reach every service it needs?
  4. Which trust direction does the split need?
  5. Which identity reaches AF and the Data Archive?
  6. How do I authorize the identities at each backend?
  7. What proves the deployment works before go-live?
  8. Should we keep the split or consolidate to one domain?
  9. Questions asked

The documented recommendation is one domain. PI System architecture planning guidance asks for the PI Data Archive, the AF server, the PI Vision application server and the SQL Server hosting the PI Vision database to share a single domain, so every backend connection stays inside one identity boundary. When the archive remains in Domain A while AF and PI Vision go into Domain B, the deployment is still supportable, but it stops being a networking task and becomes an identity and trust design: record every connection, set the trust direction, choose between a service identity and Kerberos delegation, and prove each hop from the host that initiates it.

Should PI AF and PI Vision share a domain with the PI Data Archive? #

In one domain: the vendor's architecture planning guidance recommends keeping the PI Data Archive, the AF server, the PI Vision application server and the SQL Server hosting the PI Vision database together, so every backend link works with straightforward Windows integrated security.

A split does not make the design impossible; it multiplies the ways identity can fail quietly — a trust in the wrong direction, an account the resource domain refuses to accept, a service principal registered for a name the application never uses. Four components appear in that recommendation, and SQL placement is part of it: putting AF and Vision in Domain B does not settle where their databases live.

One distinction keeps the inventory honest. The Data Archive keeps its history in its own files rather than in a SQL database, so the Domain A host brings no SQL dependency of its own — see whether the PI Data Archive stores tag data in SQL Server before counting database servers. The decision at this step: if the archive can be migrated now or on a planned date, consolidate into one domain and the rest of this article becomes unnecessary. If it cannot, read on.

What exactly sits in Domain A today? #

Record the PI Data Archive host as one component, then list every other piece separately: the AF server, the PI Vision application server, the SQL instance for the PI Vision database, and the SQL instance behind AF, because "PI Server in Domain A" usually means only the Data Archive.

Component Where it lands What it decides
PI Data Archive Domain A, existing host Which identities may read archived values
AF server Domain B Serves the asset hierarchy and attribute configuration
PI Vision application server Domain B Accepts browser sessions and opens the backend connections
SQL for the PI Vision database Domain B Application data and its own login boundary
SQL for the AF database Domain B Asset metadata storage behind the AF server
Service accounts Domain B The identities Domain A must accept

Commit both SQL instances to Domain B. That leaves exactly one cross-domain application connection in the design — the archive read — instead of three, and it puts every database login decision inside the same domain as the applications that use it.

Can Domain B reach every service it needs? #

Test from the host that initiates each connection, not from an administrator's workstation: resolve the name, open the documented endpoint and port for the installed version, then make the application connection itself, recording firewall rules by source and destination.

Five connections make up this deployment, and each has one originating host:

# Connection Originating host
1 Browser to PI Vision Operator workstation
2 PI Vision to AF PI Vision server
3 PI Vision to its SQL database PI Vision server
4 AF to its SQL database AF server
5 AF to the PI Data Archive AF server

Keep three results separate as you go: DNS resolution proves the name, an open endpoint proves transport, a successful read proves permission. An endpoint that answers but fails authentication is not a firewall problem, so do not open broad traffic between the domains; record rules by source and destination, the same discipline used when segmenting edge platform networks for data, BMC and OS traffic.

Use one consistent server name everywhere — an alias and a host's real name can be different authentication targets under Kerberos — and verify clock synchronization on every participating system, because Kerberos rejects tickets from clocks that disagree.

Which trust direction does the split need? #

The domain hosting the resource must accept the account domain: with the archive in Domain A and AF, Vision, both SQL instances and the service accounts in Domain B, Domain A must trust Domain B accounts, and Domain B must accept Domain A accounts for any operators still there.

A trust lets one domain accept accounts from another, and the resource side is the one that must do the accepting. Ask the domain administrators two questions: which identities does Domain A accept from Domain B, and does selective authentication restrict them? Selective authentication can leave a trust in place while blocking exactly the service account you deployed. Then read the authentication records on the receiving systems and write down the account that actually arrived; that log entry, not the login screen, is the evidence. Where workstations sign in through a hybrid identity setup rather than plain on-premises Kerberos, add the failure class where cloud Kerberos trust suddenly stops working to the triage list.

Which identity reaches AF and the Data Archive? #

Decide connection by connection between a service identity and the delegated operator identity: the PI Vision application pool can open its AF and SQL connections under its own account, while reads against the Data Archive carry either that service account or the operator's identity forwarded by Kerberos delegation.

Two supported models, and the choice is about data security on displays, not convenience. Under a service identity, every operator sees whatever that account may read — acceptable for crew-wide, read-only process displays and the simpler model to keep running. Under Kerberos constrained delegation, the operator's identity travels from the browser session through PI Vision to AF and the archive, so per-user restrictions enforced at the archive show up on the display — required when different operators must see different data.

Delegation solves only the identity handoff: it grants no data rights, and adding data rights cannot repair a failed handoff. Where delegation applies, set the service principal names and the delegation scope against the deployment guidance for the installed product versions. Never accept an interactive test under an administrator account as proof, because a background service account authenticates on its own terms. And do not paper over an unresolved permission with an account holding administrator rights on either domain; that workaround outlives the project and the audit.

How do I authorize the identities at each backend? #

Three separate grants: SQL login and database rights for the application identities on the PI Vision database and the AF database, AF-level read access for the users and services that browse metadata, and PI identity mappings plus Data Archive security for whoever must read the archived values.

On SQL, grant logins and database rights to the identities that actually arrived, on the PI Vision database and the AF database separately — success on one proves nothing about the other. On AF, grant read access to the asset hierarchy the displays use. On the Data Archive, configure identity mappings and point-level security for whoever must read values. The exact role and permission names are version-specific, so take them from the installation guidance for the versions you deployed and grant least privilege; the negative test in the commissioning list below is what proves the boundary holds.

What proves the deployment works before go-live? #

A display that resolves an AF attribute and then retrieves its underlying archived value, under a representative operator account, proves the whole chain; a page that merely opens proves only the browser-to-IIS hop, which is one of five connections.

Commission in this order and write down every result:

  1. From the PI Vision server, resolve the AF server, the SQL instance and the Data Archive by the exact names used in configuration.
  2. From that same host, open each documented endpoint and port, and record the firewall rule that allowed it, by source and destination.
  3. Confirm with the domain administrators that the trust direction is set and that selective authentication, if enabled, includes your service and operator identities.
  4. Prove authentication per connection by reading the receiving system's log entry and recording the account that arrived.
  5. Grant SQL rights on the PI Vision database and the AF database for exactly those identities.
  6. Configure AF access and PI identity mappings so the same identities can read one chosen asset hierarchy and one known point.
  7. Load one display as a representative operator and confirm the attribute resolves and the value appears with a current timestamp.
  8. Repeat with an account that has no Data Archive read rights and confirm the value is withheld while the page still renders.

Worked example, illustrative counts for the minimum display. One display, one AF attribute, one PI point behind it. Loading it exercises all five connections: 1, 2 and 3 from the browser session and the Vision application, 4 as AF reads its metadata, and 5 for the value itself. Record three results per connection — transport open, identity arrived, read authorized — so 5 × 3 = 15 evidence lines. Add the end-to-end check under the operator and the negative check with the unauthorized account: 15 + 1 + 1 = 17 checks. Seventeen passes is the go-live gate; anything less leaves a hop unproven.

Should we keep the split or consolidate to one domain? #

Consolidate if the archive can be migrated; keep the split only if it cannot; one domain is the documented recommendation and the simpler system to run, and the split stays supportable with Domain B hosting AF, Vision, both SQL instances and the service accounts, plus the seventeen commissioning checks passed.

Case one: the archive can move. Consolidate — bring the PI Data Archive into the domain that will hold AF, Vision and both SQL instances, or accept those components into Domain A. One domain removes the trust, the delegation design and the cross-domain firewall rules, which is why the planning guidance recommends it outright.

Case two: the archive stays. Proceed with the split and stop treating it as provisional: Domain B hosts the AF server, the PI Vision application, both SQL instances and the service accounts; Domain A trusts Domain B, with Domain B also accepting Domain A if operators remain there; the identity model follows whether displays must show per-user data security; go-live waits for the seventeen checks. A split designed that way runs for years. An improvised one gives trouble in the first commissioning week.

Questions asked

Can the PI Vision database and the AF database share one SQL Server instance?

Yes, when sizing allows it. The domain recommendation is about placement, not about merging instances: the SQL Server hosting the PI Vision database belongs in the same domain as the application servers, and the AF database follows the AF server. Sharing one instance in Domain B satisfies both, as long as each database's logins and roles are granted and tested separately.

What if no trust can be established between Domain A and Domain B?

Then consolidate: move the components into one domain, even if that means migrating the PI Data Archive later. Without a trust, Domain A has no supported way to accept the Domain B service identity that AF and Vision use, and mirroring local accounts across hosts is undocumented and unmaintainable. The same-domain recommendation exists for exactly this case.

Do operators need new accounts in Domain B to open PI Vision displays?

No. The browser authenticates to the PI Vision server in Domain B, so Domain B must accept the operators' existing Domain A accounts through the trust; the accounts themselves do not move. What you verify is that the accepted identity is the one AF and the Data Archive later see, or the one Kerberos delegation forwards.

Can I leave the SQL Server for the PI Vision database in Domain A with the archive?

You can, but you double the boundaries: the PI Vision application in Domain B would authenticate to SQL in Domain A while AF and Vision also cross to the archive. Keep the PI Vision database's SQL Server in Domain B with the application servers, so only the archive read crosses domains.

Keep reading

  • Troubleshooting

    When PI Vision connects to only one PI Data Archive

    When PI Vision reaches the production PI Data Archive but fails on the development archive, trace the failing request before touching Kerberos: confirm the w3wp connection in the archive's message logs, verify the pool identity, then check the Windows network profile. In the reported case a domain connection reclassified as Private broke the path; restoring the domain classification fixed it.

    Edge computing and IIoT

  • Troubleshooting

    Fix a DeltaV embedded trend that shows no PI history

    The error names the chart's own PI history connection, PI1, failing to open — the data is not missing. Process History View working on the same workstation proves the server, network and stored interval are good, so stop cycling hostname, IP and defaulthost and reconcile the chart's Historical Data Server entry and the PI1 connection definition against the viewer's working path.

    Edge computing and IIoT

  • Troubleshooting

    Fix InTouch 2023 Test Connection failure to Historian

    Test Connection from InTouch 2023 to a remote Historian fails for two reasons: the Historian node's firewall blocks the SQL Server listener even though ping works, and the Distributed Name Manager history provider does not support Windows credentials. Prove TCP reachability, then use a SQL Server login stored in Credentials Manager.

    Edge computing and IIoT