Skip to content

Commit 3a79e76

Browse files
authored
Fixes MicrosoftDocs/azure-docs#8974
The C# code sample has invalid variable passed to PlacementPolicies.Add() method in Preferred Domain section. ServicePlacementPreferPrimaryDomainPolicyDescription primaryDomain = new ServicePlacementPreferPrimaryDomainPolicyDescription(); primaryDomain.DomainName = "fd:/EastUS/"; serviceDescription.PlacementPolicies.Add(invalidDomain); // <- should be "primaryDomain" here
1 parent bdee679 commit 3a79e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/service-fabric/service-fabric-cluster-resource-manager-advanced-placement-rules-placement-policies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The Preferred Primary Domain specifies the fault domain to place the Primary in.
8787
```csharp
8888
ServicePlacementPreferPrimaryDomainPolicyDescription primaryDomain = new ServicePlacementPreferPrimaryDomainPolicyDescription();
8989
primaryDomain.DomainName = "fd:/EastUS/";
90-
serviceDescription.PlacementPolicies.Add(invalidDomain);
90+
serviceDescription.PlacementPolicies.Add(primaryDomain);
9191
```
9292

9393
Powershell:

0 commit comments

Comments
 (0)