Skip to content

Commit a0ac390

Browse files
committed
Update database docs
1 parent fb88c06 commit a0ac390

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

articles/data-explorer/create-cluster-database-csharp.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,15 @@ If the result contains `ProvisioningState` with the `Succeeded` value, then the
9292
var hotCachePeriod = new TimeSpan(3650, 0, 0, 0);
9393
var softDeletePeriod = new TimeSpan(3650, 0, 0, 0);
9494
var databaseName = "mykustodatabase";
95-
var database = new Database(location: location, softDeletePeriod: softDeletePeriod, hotCachePeriod: hotCachePeriod);
95+
var database = new ReadWriteDatabase(location: location, softDeletePeriod: softDeletePeriod, hotCachePeriod: hotCachePeriod);
9696

9797
await kustoManagementClient.Databases.CreateOrUpdateAsync(resourceGroupName, clusterName, databaseName, database);
9898
```
9999

100+
[!NOTE]
101+
if you are using C# client of version 2.0.0 or below, please use "Database" object instead of "ReadWriteDatabase".
102+
103+
100104
|**Setting** | **Suggested value** | **Field description**|
101105
|---|---|---|
102106
| clusterName | *mykustocluster* | The name of your cluster where the database will be created.|
@@ -108,7 +112,7 @@ If the result contains `ProvisioningState` with the `Succeeded` value, then the
108112
2. Run the following command to see the database that you created:
109113

110114
```csharp
111-
kustoManagementClient.Databases.Get(resourceGroupName, clusterName, databaseName);
115+
kustoManagementClient.Databases.Get(resourceGroupName, clusterName, databaseName) as ReadWriteDatabase;
112116
```
113117

114118
You now have a cluster and a database.

articles/data-explorer/create-cluster-database-python.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,18 @@ If the result contains `provisioningState` with the `Succeeded` value, then the
105105
databaseName="mykustodatabase"
106106

107107
database_operations = kusto_management_client.databases
108-
_database = Database(location=location,
108+
_database = ReadWriteDatabase(location=location,
109109
soft_delete_period=softDeletePeriod,
110110
hot_cache_period=hotCachePeriod)
111111

112112
#Returns an instance of LROPoller, see https://docs.microsoft.com/python/api/msrest/msrest.polling.lropoller?view=azure-python
113113
poller =database_operations.create_or_update(resource_group_name = resource_group_name, cluster_name = clusterName, database_name = databaseName, parameters = _database)
114114
```
115115

116+
[!NOTE]
117+
if you are using python client of version 0.4.0 or below, please use "Database" object instead of "ReadWriteDatabase".
118+
119+
116120
|**Setting** | **Suggested value** | **Field description**|
117121
|---|---|---|
118122
| cluster_name | *mykustocluster* | The name of your cluster where the database will be created.|

0 commit comments

Comments
 (0)