Skip to content

Commit ad99751

Browse files
committed
Fix CR Comments
1 parent 1198dda commit ad99751

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

articles/data-explorer/follower.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ There are various methods you can use to attach a database. In this article, we
3333

3434
### Attach a database using C#
3535

36-
**Needed NuGets**
36+
####Needed NuGets
3737

3838
* Install [Microsoft.Azure.Management.kusto](https://www.nuget.org/packages/Microsoft.Azure.Management.Kusto/).
3939
* Install [Microsoft.Rest.ClientRuntime.Azure.Authentication for authentication](https://www.nuget.org/packages/Microsoft.Rest.ClientRuntime.Azure.Authentication).
4040

41+
####Code Example
4142

4243
```Csharp
4344
var tenantId = "xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxx";//Directory (tenant) ID
@@ -73,12 +74,15 @@ var attachedDatabaseConfigurations = resourceManagementClient.AttachedDatabaseCo
7374

7475
### Attach a database using Python
7576

76-
**Needed Modules**
77+
####Needed Modules
78+
7779
```
7880
pip install azure-common
7981
pip install azure-mgmt-kusto
8082
```
8183

84+
####Code Example
85+
8286
```python
8387
from azure.mgmt.kusto import KustoManagementClient
8488
from azure.mgmt.kusto.models import AttachedDatabaseConfiguration
@@ -112,14 +116,10 @@ cluster_resource_id = "/subscriptions/" + leader_subscription_id + "/resourceGro
112116

113117
attached_database_configuration_properties = AttachedDatabaseConfiguration(cluster_resource_id = cluster_resource_id, database_name = database_name, default_principals_modification_kind = default_principals_modification_kind, location = location)
114118

115-
116119
#Returns an instance of LROPoller, see https://docs.microsoft.com/python/api/msrest/msrest.polling.lropoller?view=azure-python
117120
poller = kusto_management_client.attached_database_configurations.create_or_update(follower_resource_group_name, follower_cluster_name, attached_database_Configuration_name, attached_database_configuration_properties)
118121
```
119122

120-
121-
122-
123123
### Attach a database using an Azure Resource Manager template
124124

125125
In this section, you learn how to attach a database by using an [Azure Resource Manager template](../azure-resource-manager/resource-group-overview.md).
@@ -239,7 +239,7 @@ Alternatively:
239239

240240
### Detach the attached follower database from the follower cluster
241241

242-
Follower cluster can detach any attached database as follows:
242+
The follower cluster can detach any attached database as follows:
243243

244244
```csharp
245245
var tenantId = "xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxx";//Directory (tenant) ID
@@ -295,7 +295,7 @@ resourceManagementClient.Clusters.DetachFollowerDatabases(leaderResourceGroupNam
295295

296296
### Detach the attached follower database from the follower cluster
297297

298-
Follower cluster can detach any attached database as follows:
298+
The follower cluster can detach any attached database as follows:
299299

300300
```python
301301
from azure.mgmt.kusto import KustoManagementClient
@@ -322,7 +322,6 @@ attached_database_configurationName = "adc"
322322

323323
#Returns an instance of LROPoller, see https://docs.microsoft.com/python/api/msrest/msrest.polling.lropoller?view=azure-python
324324
poller = kusto_management_client.attached_database_configurations.delete(follower_resource_group_name, follower_cluster_name, attached_database_configurationName)
325-
326325
```
327326

328327
### Detach the attached follower database from the leader cluster
@@ -362,7 +361,6 @@ cluster_resource_id = "/subscriptions/" + follower_subscription_id + "/resourceG
362361

363362
#Returns an instance of LROPoller, see https://docs.microsoft.com/python/api/msrest/msrest.polling.lropoller?view=azure-python
364363
poller = kusto_management_client.clusters.detach_follower_databases(resource_group_name = leader_resource_group_name, cluster_name = leader_cluster_name, cluster_resource_id = cluster_resource_id, attached_database_configuration_name = attached_database_configuration_name)
365-
366364
```
367365

368366
## Manage principals, permissions, and caching policy

0 commit comments

Comments
 (0)