| Previous | Next |
| HNS_LAYER_ALREADY_EXISTS | HNS_PORT_ALREADY_EXISTS |
HNS_POLICY_ALREADY_EXISTS
HNS_POLICY_ALREADY_EXISTS is an HRESULT used by Windows Host Networking Service (HNS). It indicates that the requested policy would duplicate a policy already associated with the HNS object.
What to check for HNS_POLICY_ALREADY_EXISTS
- List policies already applied to the target network, endpoint, or port.
- Compare policy identity and content before treating the result as a safe idempotent success.
- Avoid adding duplicate rules from concurrent startup or retry paths.
Microsoft documentation on Windows container networking and HNS
Diagnostic discriminator: Enumerate policies already attached to the target HNS object and compare their type and key fields. This result identifies a duplicate policy, not an absent target object.
Looking for a different code? Search another status or error code.
