Skip to content

Commit f5dd42b

Browse files
committed
update ADX follower documentation
1 parent 43748fb commit f5dd42b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

articles/data-explorer/follower.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ var clientSecret = "xxxxxxxxxxxxxx";//Client secret
4646
var subscriptionId = "xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxx";
4747

4848
var serviceCreds = await ApplicationTokenProvider.LoginSilentAsync(tenantId, clientId, clientSecret);
49-
var resourceManagementClient = new ResourceManagementClient(serviceCreds);
49+
var resourceManagementClient = new KustoManagementClient(serviceCreds){
50+
SubscriptionId = subscriptionId
51+
};
5052

5153
var leaderResourceGroupName = "testrg";
5254
var followerResourceGroupName = "followerResouceGroup";
55+
var leaderResourceGroup = "leaderResouceGroup";
5356
var leaderClusterName = "leader";
5457
var followerClusterName = "follower";
5558
var attachedDatabaseConfigurationName = "adc";
@@ -59,7 +62,7 @@ var location = "North Central US";
5962

6063
AttachedDatabaseConfiguration attachedDatabaseConfigurationProperties = new AttachedDatabaseConfiguration()
6164
{
62-
ClusterResourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{followerResourceGroupName}/providers/Microsoft.Kusto/Clusters/{followerClusterName}",
65+
ClusterResourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{leaderResourceGroup}/providers/Microsoft.Kusto/Clusters/{leaderClusterName}",
6366
DatabaseName = databaseName,
6467
DefaultPrincipalsModificationKind = defaultPrincipalsModificationKind,
6568
Location = location
@@ -196,7 +199,9 @@ var clientSecret = "xxxxxxxxxxxxxx";//Client secret
196199
var subscriptionId = "xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxx";
197200

198201
var serviceCreds = await ApplicationTokenProvider.LoginSilentAsync(tenantId, clientId, clientSecret);
199-
var resourceManagementClient = new ResourceManagementClient(serviceCreds);
202+
var resourceManagementClient = new KustoManagementClient(serviceCreds){
203+
SubscriptionId = subscriptionId
204+
};
200205

201206
var followerResourceGroupName = "testrg";
202207
//The cluster and database that are created as part of the prerequisites
@@ -217,7 +222,9 @@ var clientSecret = "xxxxxxxxxxxxxx";//Client secret
217222
var subscriptionId = "xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxx";
218223

219224
var serviceCreds = await ApplicationTokenProvider.LoginSilentAsync(tenantId, clientId, clientSecret);
220-
var resourceManagementClient = new ResourceManagementClient(serviceCreds);
225+
var resourceManagementClient = new KustoManagementClient(serviceCreds){
226+
SubscriptionId = subscriptionId
227+
};
221228

222229
var leaderResourceGroupName = "testrg";
223230
var followerResourceGroupName = "followerResouceGroup";
@@ -237,12 +244,12 @@ resourceManagementClient.Clusters.DetachFollowerDatabases(leaderResourceGroupNam
237244

238245
### Manage principals
239246

240-
When attaching a database, specify the **default principals modification kind"**. The default is keeping the leader database collection of [authorized principals](/azure/kusto/management/access-control/index#authorization)
247+
When attaching a database, specify the **"default principals modification kind"**. The default is keeping the leader database collection of [authorized principals](/azure/kusto/management/access-control/index#authorization)
241248

242249
|**Kind** |**Description** |
243250
|---------|---------|
244251
|**Union** | The attached database principals will always include the original database principals plus additional new principals added to the follower database. |
245-
|**Replace** | No inheritance of principals from the original database. New principals must be created for the attached database. At least one principal needs to be added to block principal inheritance. |
252+
|**Replace** | No inheritance of principals from the original database. New principals must be created for the attached database. |
246253
|**None** | The attached database principals include only the principals of the original database with no additional principals. |
247254

248255
For more information about using control commands to configure the authorized principals, see [Control commands for managing a follower cluster](/azure/kusto/management/cluster-follower).

0 commit comments

Comments
 (0)