Skip to content

Commit 9f6b2fa

Browse files
authored
Merge pull request #103728 from docohe/fix-follower-3
Kusto - make follower docs more clear
2 parents 4abd071 + baafea9 commit 9f6b2fa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/data-explorer/follower.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var followerResourceGroupName = "followerResouceGroup";
5656
var leaderResourceGroup = "leaderResouceGroup";
5757
var leaderClusterName = "leader";
5858
var followerClusterName = "follower";
59-
var attachedDatabaseConfigurationName = "adc";
59+
var attachedDatabaseConfigurationName = "uniqueNameForAttachedDatabaseConfiguration";
6060
var databaseName = "db"; // Can be specific database name or * for all databases
6161
var defaultPrincipalsModificationKind = "Union";
6262
var location = "North Central US";
@@ -108,7 +108,7 @@ follower_resource_group_name = "followerResouceGroup"
108108
leader_resouce_group_name = "leaderResouceGroup"
109109
follower_cluster_name = "follower"
110110
leader_cluster_name = "leader"
111-
attached_database_Configuration_name = "adc"
111+
attached_database_Configuration_name = "uniqueNameForAttachedDatabaseConfiguration"
112112
database_name = "db" # Can be specific database name or * for all databases
113113
default_principals_modification_kind = "Union"
114114
location = "North Central US"
@@ -175,7 +175,7 @@ In this section, you learn to attach a database to an existing cluser by using a
175175
"variables": {},
176176
"resources": [
177177
{
178-
"name": "[concat(parameters('followerClusterName'), '/', parameters('attachedDatabaseConfigurationsName'))]",
178+
"name": "[parameters('attachedDatabaseConfigurationsName')]",
179179
"type": "Microsoft.Kusto/clusters/attachedDatabaseConfigurations",
180180
"apiVersion": "2019-09-07",
181181
"location": "[parameters('location')]",
@@ -201,8 +201,8 @@ You can deploy the Azure Resource Manager template by [using the Azure portal](h
201201

202202
|**Setting** |**Description** |
203203
|---------|---------|
204-
|Follower Cluster Name | The name of the follower cluster. |
205-
|Attached Database Configurations Name | The name of the attached database configurations object. The name must be unique at the cluster level. |
204+
|Follower Cluster Name | The name of the follower cluster. This is the cluster which this template will be deployed on. |
205+
|Attached Database Configurations Name | The name of the attached database configurations object. The name can be any string as long as it's unique at the cluster level. |
206206
|Database Name | The name of the database to be followed. If you want to follow all the leader's databases, use '*'. |
207207
|Leader Cluster Resource ID | The resource ID of the leader cluster. |
208208
|Default Principals Modification Kind | The default principal modification kind. Can be `Union`, `Replace` or `None`. For more information about default principal modification kind, see [principal modification kind control command](/azure/kusto/management/cluster-follower?branch=master#alter-follower-database-principals-modification-kind). |
@@ -245,7 +245,7 @@ var resourceManagementClient = new KustoManagementClient(serviceCreds){
245245
var followerResourceGroupName = "testrg";
246246
//The cluster and database that are created as part of the prerequisites
247247
var followerClusterName = "follower";
248-
var attachedDatabaseConfigurationsName = "adc";
248+
var attachedDatabaseConfigurationsName = "uniqueName";
249249

250250
resourceManagementClient.AttachedDatabaseConfigurations.Delete(followerResourceGroupName, followerClusterName, attachedDatabaseConfigurationsName);
251251
```
@@ -273,7 +273,7 @@ var followerClusterName = "follower";
273273
//The cluster and database that are created as part of the Prerequisites
274274
var followerDatabaseDefinition = new FollowerDatabaseDefinition()
275275
{
276-
AttachedDatabaseConfigurationName = "adc",
276+
AttachedDatabaseConfigurationName = "uniqueName",
277277
ClusterResourceId = $"/subscriptions/{followerSubscriptionId}/resourceGroups/{followerResourceGroupName}/providers/Microsoft.Kusto/Clusters/{followerClusterName}"
278278
};
279279

@@ -307,7 +307,7 @@ kusto_management_client = KustoManagementClient(credentials, follower_subscripti
307307

308308
follower_resource_group_name = "followerResouceGroup"
309309
follower_cluster_name = "follower"
310-
attached_database_configurationName = "adc"
310+
attached_database_configurationName = "uniqueName"
311311

312312
#Returns an instance of LROPoller, see https://docs.microsoft.com/python/api/msrest/msrest.polling.lropoller?view=azure-python
313313
poller = kusto_management_client.attached_database_configurations.delete(follower_resource_group_name, follower_cluster_name, attached_database_configurationName)
@@ -343,7 +343,7 @@ follower_resource_group_name = "followerResourceGroup"
343343
leader_resource_group_name = "leaderResourceGroup"
344344
follower_cluster_name = "follower"
345345
leader_cluster_name = "leader"
346-
attached_database_configuration_name = "adc"
346+
attached_database_configuration_name = "uniqueName"
347347
location = "North Central US"
348348
cluster_resource_id = "/subscriptions/" + follower_subscription_id + "/resourceGroups/" + follower_resource_group_name + "/providers/Microsoft.Kusto/Clusters/" + follower_cluster_name
349349

0 commit comments

Comments
 (0)