diff --git a/src/kusto/azext_kusto/generated/_help.py b/src/kusto/azext_kusto/generated/_help.py index c319c0cdaf0..21c8d05c359 100644 --- a/src/kusto/azext_kusto/generated/_help.py +++ b/src/kusto/azext_kusto/generated/_help.py @@ -42,8 +42,9 @@ - name: KustoClustersCreateOrUpdate text: |- az kusto cluster create --cluster-name "KustoClusterRPTest4" --identity-type "SystemAssigned" --location\ - "westus" --enable-purge true --enable-streaming-ingest true --key-vault-properties key-name="" key-vault-uri="" key-ve\ -rsion="" --sku name="Standard_L8s" capacity=2 tier="Standard" --resource-group "kustorptest" + "westus" --enable-purge true --enable-streaming-ingest true --key-vault-properties key-name="keyName" key-vault-uri="h\ +ttps://dummy.keyvault.com" key-version="keyVersion" --sku name="Standard_L8s" capacity=2 tier="Standard" --resource-gro\ +up "kustorptest" """ helps['kusto cluster update'] = """ @@ -186,8 +187,8 @@ - name: KustoClusterPrincipalAssignmentsCreateOrUpdate text: |- az kusto cluster-principal-assignment create --cluster-name "kustoclusterrptest4" --principal-id "876543\ -21-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id "12345678-1234-1234-1234-\ -123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +21-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id "12345678-1234-1234-1234-123456789123\ +" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" """ helps['kusto cluster-principal-assignment update'] = """ @@ -197,8 +198,8 @@ - name: KustoClusterPrincipalAssignmentsCreateOrUpdate text: |- az kusto cluster-principal-assignment update --cluster-name "kustoclusterrptest4" --principal-id "876543\ -21-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id "12345678-1234-1234-1234-\ -123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +21-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id "12345678-1234-1234-1234-123456789123\ +" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" """ helps['kusto cluster-principal-assignment delete'] = """ @@ -284,8 +285,8 @@ examples: - name: KustoDatabaseListPrincipals text: |- - az kusto database list-principal --cluster-name "KustoClusterRPTest4" --database-name "Kustodatabase8" -\ --resource-group "kustorptest" + az kusto database list-principal --cluster-name "KustoClusterRPTest4" --database-name "databaseName1" --\ +resource-group "kustorptest" """ helps['kusto database remove-principal'] = """ @@ -392,7 +393,7 @@ az kusto attached-database-configuration create --attached-database-configuration-name "attachedDatabase\ Configurations1" --cluster-name "KustoClusterRPTest4" --location "westus" --cluster-resource-id "/subscriptions/1234567\ 8-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --datab\ -ase-name "Kustodatabase8" --default-principals-modification-kind "Union" --resource-group "kustorptest" +ase-name "db1" --default-principals-modification-kind "Union" --resource-group "kustorptest" """ helps['kusto attached-database-configuration update'] = """ @@ -404,7 +405,7 @@ az kusto attached-database-configuration update --attached-database-configuration-name "attachedDatabase\ Configurations1" --cluster-name "KustoClusterRPTest4" --location "westus" --cluster-resource-id "/subscriptions/1234567\ 8-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --datab\ -ase-name "Kustodatabase8" --default-principals-modification-kind "Union" --resource-group "kustorptest" +ase-name "db1" --default-principals-modification-kind "Union" --resource-group "kustorptest" """ helps['kusto attached-database-configuration delete'] = """ @@ -532,27 +533,3 @@ type: command short-summary: Checks that the data connection parameters are valid. """ - -helps['kusto attached-database-configuration wait'] = """ -type: command -short-summary: Wait for a managed Kusto cluster to reach a desired state. -long-summary: If an operation on a cluster was interrupted or was started with `--no-wait`, use this command to wait for it to complete. -""" - -helps['kusto cluster-principal-assignment wait'] = """ -type: command -short-summary: Wait for a managed Kusto cluster to reach a desired state. -long-summary: If an operation on a cluster was interrupted or was started with `--no-wait`, use this command to wait for it to complete. -""" - -helps['kusto data-connection wait'] = """ -type: command -short-summary: Wait for a managed Kusto cluster to reach a desired state. -long-summary: If an operation on a cluster was interrupted or was started with `--no-wait`, use this command to wait for it to complete. -""" - -helps['kusto database-principal-assignment wait'] = """ -type: command -short-summary: Wait for a managed Kusto cluster to reach a desired state. -long-summary: If an operation on a cluster was interrupted or was started with `--no-wait`, use this command to wait for it to complete. -""" diff --git a/src/kusto/azext_kusto/generated/_params.py b/src/kusto/azext_kusto/generated/_params.py index ff17d49df18..5caa356f3b1 100644 --- a/src/kusto/azext_kusto/generated/_params.py +++ b/src/kusto/azext_kusto/generated/_params.py @@ -71,7 +71,11 @@ def load_arguments(self, _): c.argument('language_extensions_value', action=AddLanguageExtensionsValue, nargs='+', help='The list of languag' 'e extensions. Expect value: language-extension-name=xx.') c.argument('identity_type', arg_type=get_enum_type(['None', 'SystemAssigned']), help='The identity type.') - c.argument('identity_user_assigned_identities', arg_type=CLIArgumentType(options_list=['--identity-user-assigned-identities'], help='The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}\'. Expected value: json-string/@json-file.')) + c.argument('identity_user_assigned_identities', arg_type=CLIArgumentType(options_list=['--identity-user-assigne' + 'd-identities'], help='The list of user identities associated with the Kusto cluster. The user ident' + 'ity dictionary key references will be ARM resource ids in the form: \'/subscriptions/{subscriptionI' + 'd}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{i' + 'dentityName}\'. Expected value: json-string/@json-file.')) with self.argument_context('kusto cluster update') as c: c.argument('resource_group_name', resource_group_name_type) @@ -101,7 +105,11 @@ def load_arguments(self, _): c.argument('language_extensions_value', action=AddLanguageExtensionsValue, nargs='+', help='The list of languag' 'e extensions. Expect value: language-extension-name=xx.') c.argument('identity_type', arg_type=get_enum_type(['None', 'SystemAssigned']), help='The identity type.') - c.argument('identity_user_assigned_identities', arg_type=CLIArgumentType(options_list=['--identity-user-assigned-identities'], help='The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}\'. Expected value: json-string/@json-file.')) + c.argument('identity_user_assigned_identities', arg_type=CLIArgumentType(options_list=['--identity-user-assigne' + 'd-identities'], help='The list of user identities associated with the Kusto cluster. The user ident' + 'ity dictionary key references will be ARM resource ids in the form: \'/subscriptions/{subscriptionI' + 'd}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{i' + 'dentityName}\'. Expected value: json-string/@json-file.')) with self.argument_context('kusto cluster delete') as c: c.argument('resource_group_name', resource_group_name_type) @@ -302,7 +310,8 @@ def load_arguments(self, _): ' follow all current and future databases.') c.argument('cluster_resource_id', help='The resource id of the cluster where the databases you would like to at' 'tach reside.') - c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), help='The default principals modification kind') + c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), help= + 'The default principals modification kind') with self.argument_context('kusto attached-database-configuration update') as c: c.argument('resource_group_name', resource_group_name_type) @@ -314,7 +323,8 @@ def load_arguments(self, _): ' follow all current and future databases.') c.argument('cluster_resource_id', help='The resource id of the cluster where the databases you would like to at' 'tach reside.') - c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), help='The default principals modification kind') + c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), help= + 'The default principals modification kind') with self.argument_context('kusto attached-database-configuration delete') as c: c.argument('resource_group_name', resource_group_name_type) diff --git a/src/kusto/azext_kusto/generated/action.py b/src/kusto/azext_kusto/generated/action.py index c5c7ef27a7c..cdcd8fc8ebb 100644 --- a/src/kusto/azext_kusto/generated/action.py +++ b/src/kusto/azext_kusto/generated/action.py @@ -19,6 +19,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.sku = action + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -45,6 +46,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) super(AddTrustedExternalTenants, self).__call__(parser, namespace, action, option_string) + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -67,6 +69,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.optimized_autoscale = action + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -95,6 +98,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.virtual_network_configuration = action + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -121,6 +125,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.key_vault_properties = action + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -147,6 +152,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) super(AddLanguageExtensionsValue, self).__call__(parser, namespace, action, option_string) + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -169,6 +175,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.read_write_database = action + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -196,6 +203,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.read_only_following_database = action + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) @@ -221,6 +229,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) super(AddValue, self).__call__(parser, namespace, action, option_string) + def get_action(self, values, option_string): # pylint: disable=no-self-use try: properties = defaultdict(list) diff --git a/src/kusto/azext_kusto/generated/custom.py b/src/kusto/azext_kusto/generated/custom.py index 7e9cc01e8d8..21273664e71 100644 --- a/src/kusto/azext_kusto/generated/custom.py +++ b/src/kusto/azext_kusto/generated/custom.py @@ -14,21 +14,21 @@ from knack.util import CLIError -def kusto_cluster_list(client, +def kusto_cluster_list(cmd, client, resource_group_name=None): if resource_group_name is not None: return client.list_by_resource_group(resource_group_name=resource_group_name) return client.list() -def kusto_cluster_show(client, +def kusto_cluster_show(cmd, client, resource_group_name, cluster_name): return client.get(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_create(client, +def kusto_cluster_create(cmd, client, resource_group_name, cluster_name, location, @@ -67,7 +67,7 @@ def kusto_cluster_create(client, user_assigned_identities=identity_user_assigned_identities) -def kusto_cluster_update(client, +def kusto_cluster_update(cmd, client, resource_group_name, cluster_name, tags=None, @@ -102,14 +102,14 @@ def kusto_cluster_update(client, user_assigned_identities=identity_user_assigned_identities) -def kusto_cluster_delete(client, +def kusto_cluster_delete(cmd, client, resource_group_name, cluster_name): return client.begin_delete(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_add_language_extension(client, +def kusto_cluster_add_language_extension(cmd, client, resource_group_name, cluster_name, value=None): @@ -118,7 +118,7 @@ def kusto_cluster_add_language_extension(client, value=value) -def kusto_cluster_detach_follower_database(client, +def kusto_cluster_detach_follower_database(cmd, client, resource_group_name, cluster_name, cluster_resource_id, @@ -129,28 +129,28 @@ def kusto_cluster_detach_follower_database(client, attached_database_configuration_name=attached_database_configuration_name) -def kusto_cluster_diagnose_virtual_network(client, +def kusto_cluster_diagnose_virtual_network(cmd, client, resource_group_name, cluster_name): return client.begin_diagnose_virtual_network(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_list_follower_database(client, +def kusto_cluster_list_follower_database(cmd, client, resource_group_name, cluster_name): return client.list_follower_database(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_list_language_extension(client, +def kusto_cluster_list_language_extension(cmd, client, resource_group_name, cluster_name): return client.list_language_extension(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_list_sku(client, +def kusto_cluster_list_sku(cmd, client, resource_group_name=None, cluster_name=None): if resource_group_name is not None and cluster_name is not None: @@ -159,7 +159,7 @@ def kusto_cluster_list_sku(client, return client.list_sku() -def kusto_cluster_remove_language_extension(client, +def kusto_cluster_remove_language_extension(cmd, client, resource_group_name, cluster_name, value=None): @@ -168,28 +168,28 @@ def kusto_cluster_remove_language_extension(client, value=value) -def kusto_cluster_start(client, +def kusto_cluster_start(cmd, client, resource_group_name, cluster_name): return client.begin_start(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_stop(client, +def kusto_cluster_stop(cmd, client, resource_group_name, cluster_name): return client.begin_stop(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_principal_assignment_list(client, +def kusto_cluster_principal_assignment_list(cmd, client, resource_group_name, cluster_name): return client.list(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_cluster_principal_assignment_show(client, +def kusto_cluster_principal_assignment_show(cmd, client, resource_group_name, cluster_name, principal_assignment_name): @@ -198,7 +198,7 @@ def kusto_cluster_principal_assignment_show(client, principal_assignment_name=principal_assignment_name) -def kusto_cluster_principal_assignment_create(client, +def kusto_cluster_principal_assignment_create(cmd, client, resource_group_name, cluster_name, principal_assignment_name, @@ -215,7 +215,7 @@ def kusto_cluster_principal_assignment_create(client, principal_type=principal_type) -def kusto_cluster_principal_assignment_update(client, +def kusto_cluster_principal_assignment_update(cmd, client, resource_group_name, cluster_name, principal_assignment_name, @@ -232,7 +232,7 @@ def kusto_cluster_principal_assignment_update(client, principal_type=principal_type) -def kusto_cluster_principal_assignment_delete(client, +def kusto_cluster_principal_assignment_delete(cmd, client, resource_group_name, cluster_name, principal_assignment_name): @@ -241,14 +241,14 @@ def kusto_cluster_principal_assignment_delete(client, principal_assignment_name=principal_assignment_name) -def kusto_database_list(client, +def kusto_database_list(cmd, client, resource_group_name, cluster_name): return client.list_by_cluster(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_database_show(client, +def kusto_database_show(cmd, client, resource_group_name, cluster_name, database_name): @@ -257,7 +257,7 @@ def kusto_database_show(client, database_name=database_name) -def kusto_database_create(client, +def kusto_database_create(cmd, client, resource_group_name, cluster_name, database_name, @@ -280,7 +280,7 @@ def kusto_database_create(client, parameters=parameters) -def kusto_database_update(client, +def kusto_database_update(cmd, client, resource_group_name, cluster_name, database_name, @@ -303,7 +303,7 @@ def kusto_database_update(client, parameters=parameters) -def kusto_database_delete(client, +def kusto_database_delete(cmd, client, resource_group_name, cluster_name, database_name): @@ -312,7 +312,7 @@ def kusto_database_delete(client, database_name=database_name) -def kusto_database_add_principal(client, +def kusto_database_add_principal(cmd, client, resource_group_name, cluster_name, database_name, @@ -323,7 +323,7 @@ def kusto_database_add_principal(client, value=value) -def kusto_database_list_principal(client, +def kusto_database_list_principal(cmd, client, resource_group_name, cluster_name, database_name): @@ -332,7 +332,7 @@ def kusto_database_list_principal(client, database_name=database_name) -def kusto_database_remove_principal(client, +def kusto_database_remove_principal(cmd, client, resource_group_name, cluster_name, database_name, @@ -343,7 +343,7 @@ def kusto_database_remove_principal(client, value=value) -def kusto_database_principal_assignment_list(client, +def kusto_database_principal_assignment_list(cmd, client, resource_group_name, cluster_name, database_name): @@ -352,7 +352,7 @@ def kusto_database_principal_assignment_list(client, database_name=database_name) -def kusto_database_principal_assignment_show(client, +def kusto_database_principal_assignment_show(cmd, client, resource_group_name, cluster_name, database_name, @@ -363,7 +363,7 @@ def kusto_database_principal_assignment_show(client, principal_assignment_name=principal_assignment_name) -def kusto_database_principal_assignment_create(client, +def kusto_database_principal_assignment_create(cmd, client, resource_group_name, cluster_name, database_name, @@ -382,7 +382,7 @@ def kusto_database_principal_assignment_create(client, principal_type=principal_type) -def kusto_database_principal_assignment_update(client, +def kusto_database_principal_assignment_update(cmd, client, resource_group_name, cluster_name, database_name, @@ -401,7 +401,7 @@ def kusto_database_principal_assignment_update(client, principal_type=principal_type) -def kusto_database_principal_assignment_delete(client, +def kusto_database_principal_assignment_delete(cmd, client, resource_group_name, cluster_name, database_name, @@ -412,14 +412,14 @@ def kusto_database_principal_assignment_delete(client, principal_assignment_name=principal_assignment_name) -def kusto_attached_database_configuration_list(client, +def kusto_attached_database_configuration_list(cmd, client, resource_group_name, cluster_name): return client.list_by_cluster(resource_group_name=resource_group_name, cluster_name=cluster_name) -def kusto_attached_database_configuration_show(client, +def kusto_attached_database_configuration_show(cmd, client, resource_group_name, cluster_name, attached_database_configuration_name): @@ -428,7 +428,7 @@ def kusto_attached_database_configuration_show(client, attached_database_configuration_name=attached_database_configuration_name) -def kusto_attached_database_configuration_create(client, +def kusto_attached_database_configuration_create(cmd, client, resource_group_name, cluster_name, attached_database_configuration_name, @@ -445,7 +445,7 @@ def kusto_attached_database_configuration_create(client, default_principals_modification_kind=default_principals_modification_kind) -def kusto_attached_database_configuration_update(client, +def kusto_attached_database_configuration_update(cmd, client, resource_group_name, cluster_name, attached_database_configuration_name, @@ -462,7 +462,7 @@ def kusto_attached_database_configuration_update(client, default_principals_modification_kind=default_principals_modification_kind) -def kusto_attached_database_configuration_delete(client, +def kusto_attached_database_configuration_delete(cmd, client, resource_group_name, cluster_name, attached_database_configuration_name): @@ -471,7 +471,7 @@ def kusto_attached_database_configuration_delete(client, attached_database_configuration_name=attached_database_configuration_name) -def kusto_data_connection_list(client, +def kusto_data_connection_list(cmd, client, resource_group_name, cluster_name, database_name): @@ -480,7 +480,7 @@ def kusto_data_connection_list(client, database_name=database_name) -def kusto_data_connection_show(client, +def kusto_data_connection_show(cmd, client, resource_group_name, cluster_name, database_name, @@ -491,7 +491,7 @@ def kusto_data_connection_show(client, data_connection_name=data_connection_name) -def kusto_data_connection_event_grid_create(client, +def kusto_data_connection_event_grid_create(cmd, client, resource_group_name, cluster_name, database_name, @@ -519,7 +519,7 @@ def kusto_data_connection_event_grid_create(client, parameters=parameters) -def kusto_data_connection_event_hub_create(client, +def kusto_data_connection_event_hub_create(cmd, client, resource_group_name, cluster_name, database_name, @@ -551,7 +551,7 @@ def kusto_data_connection_event_hub_create(client, parameters=parameters) -def kusto_data_connection_iot_hub_create(client, +def kusto_data_connection_iot_hub_create(cmd, client, resource_group_name, cluster_name, database_name, @@ -583,7 +583,7 @@ def kusto_data_connection_iot_hub_create(client, parameters=parameters) -def kusto_data_connection_event_grid_update(client, +def kusto_data_connection_event_grid_update(cmd, client, resource_group_name, cluster_name, database_name, @@ -611,7 +611,7 @@ def kusto_data_connection_event_grid_update(client, parameters=parameters) -def kusto_data_connection_event_hub_update(client, +def kusto_data_connection_event_hub_update(cmd, client, resource_group_name, cluster_name, database_name, @@ -643,7 +643,7 @@ def kusto_data_connection_event_hub_update(client, parameters=parameters) -def kusto_data_connection_iot_hub_update(client, +def kusto_data_connection_iot_hub_update(cmd, client, resource_group_name, cluster_name, database_name, @@ -675,7 +675,7 @@ def kusto_data_connection_iot_hub_update(client, parameters=parameters) -def kusto_data_connection_delete(client, +def kusto_data_connection_delete(cmd, client, resource_group_name, cluster_name, database_name, @@ -686,7 +686,7 @@ def kusto_data_connection_delete(client, data_connection_name=data_connection_name) -def kusto_data_connection_event_grid_data_connection_validation(client, +def kusto_data_connection_event_grid_data_connection_validation(cmd, client, resource_group_name, cluster_name, database_name, @@ -714,7 +714,7 @@ def kusto_data_connection_event_grid_data_connection_validation(client, properties=properties) -def kusto_data_connection_event_hub_data_connection_validation(client, +def kusto_data_connection_event_hub_data_connection_validation(cmd, client, resource_group_name, cluster_name, database_name, @@ -746,7 +746,7 @@ def kusto_data_connection_event_hub_data_connection_validation(client, properties=properties) -def kusto_data_connection_iot_hub_data_connection_validation(client, +def kusto_data_connection_iot_hub_data_connection_validation(cmd, client, resource_group_name, cluster_name, database_name, diff --git a/src/kusto/azext_kusto/tests/__init__.py b/src/kusto/azext_kusto/tests/__init__.py index 9a6531122f6..fe1bd438b46 100644 --- a/src/kusto/azext_kusto/tests/__init__.py +++ b/src/kusto/azext_kusto/tests/__init__.py @@ -45,4 +45,5 @@ def wrapper(*args, **kwargs): if inspect.isclass(func): return get_func_to_call() - return wrapper + else: + return wrapper diff --git a/src/kusto/azext_kusto/tests/latest/preparers.py b/src/kusto/azext_kusto/tests/latest/preparers.py index 93cae98db6b..3d6672de64f 100644 --- a/src/kusto/azext_kusto/tests/latest/preparers.py +++ b/src/kusto/azext_kusto/tests/latest/preparers.py @@ -15,6 +15,7 @@ from azure.cli.testsdk.exceptions import CliTestError from azure.cli.testsdk.reverse_dependency import get_dummy_cli + KEY_RESOURCE_GROUP = 'rg' KEY_VIRTUAL_NETWORK = 'vnet' KEY_VNET_SUBNET = 'subnet' @@ -66,8 +67,7 @@ def remove_resource(self, name, **kwargs): # delete vnet if test is being recorded and if the vnet is not a dev rg if not self.dev_setting_name: self.live_only_execute( - self.cli_ctx, 'az network vnet delete --name {} --resource-group {}' - .format(name, self.resource_group_name)) + self.cli_ctx, 'az network vnet delete --name {} --resource-group {}'.format(name, self.resource_group_name)) class VnetSubnetPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): diff --git a/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py b/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py index 4747812c0b2..4de11ca8232 100644 --- a/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py +++ b/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py @@ -25,7 +25,7 @@ def setup(test, rg): pass -# EXAMPLE: kustoclusterscreateorupdate +# EXAMPLE: KustoClustersCreateOrUpdate @try_manual def step_kustoclusterscreateorupdate(test, rg): test.cmd('az kusto cluster create ' @@ -34,7 +34,8 @@ def step_kustoclusterscreateorupdate(test, rg): '--location "westus" ' '--enable-purge true ' '--enable-streaming-ingest true ' - '--key-vault-properties key-name="" key-vault-uri="" key-version="" ' + '--key-vault-properties key-name="keyName" key-vault-uri="https://dummy.keyvault.com" key-version="keyVers' + 'ion" ' '--sku name="Standard_L8s" capacity=2 tier="Standard" ' '--resource-group "{rg}"', checks=[]) @@ -44,56 +45,110 @@ def step_kustoclusterscreateorupdate(test, rg): checks=[]) -# EXAMPLE: kustoclusterschecknameavailability +# EXAMPLE: KustoDatabasesCreateOrUpdate @try_manual -def step_kustoclusterschecknameavailability(test, rg): - # EXAMPLE NOT FOUND! - pass +def step_kustodatabasescreateorupdate(test, rg): + test.cmd('az kusto database create ' + '--cluster-name "{Clusters_3}" ' + '--database-name "KustoDatabase8" ' + '--read-write-database location="westus" soft-delete-period="P1D" ' + '--resource-group "{rg}"', + checks=[]) -# EXAMPLE: kustoclustersget +# EXAMPLE: KustoDataConnectionsCreateOrUpdate @try_manual -def step_kustoclustersget(test, rg): - test.cmd('az kusto cluster show ' +def step_kustodataconnectionscreateorupdate(test, rg): + test.cmd('az kusto data-connection event-hub create ' '--cluster-name "{Clusters_3}" ' + '--data-connection-name "{DataConnections8}" ' + '--database-name "KustoDatabase8" ' + '--location "westus" ' + '--consumer-group "testConsumerGroup1" ' + '--event-hub-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.EventHu' + 'b/namespaces/eventhubTestns1/eventhubs/eventhubTest1" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustoclusterslist +# EXAMPLE: AttachedDatabaseConfigurationsCreateOrUpdate @try_manual -def step_kustoclusterslist(test, rg): - test.cmd('az kusto cluster list', +def step_attacheddatabaseconfigurationscreateorupdate(test, rg): + test.cmd('az kusto attached-database-configuration create ' + '--attached-database-configuration-name "{attachedDatabaseConfigurations1}" ' + '--cluster-name "{Clusters_3}" ' + '--location "westus" ' + '--cluster-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Kusto/Clu' + 'sters/{Clusters_2}" ' + '--database-name "db1" ' + '--default-principals-modification-kind "Union" ' + '--resource-group "{rg}"', + checks=[]) + test.cmd('az kusto attached-database-configuration wait --created ' + '--attached-database-configuration-name "{attachedDatabaseConfigurations1}" ' + '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustoclusterslistbyresourcegroup +# EXAMPLE: AttachedDatabaseConfigurationsGet @try_manual -def step_kustoclusterslistbyresourcegroup(test, rg): - test.cmd('az kusto cluster list ' +def step_attacheddatabaseconfigurationsget(test, rg): + test.cmd('az kusto attached-database-configuration show ' + '--attached-database-configuration-name "{attachedDatabaseConfigurations1}" ' + '--cluster-name "{Clusters_3}" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustoclustersstop +# EXAMPLE: KustoDataConnectionsGet @try_manual -def step_kustoclustersstop(test, rg): - test.cmd('az kusto cluster stop ' +def step_kustodataconnectionsget(test, rg): + test.cmd('az kusto data-connection show ' '--cluster-name "{Clusters_3}" ' + '--data-connection-name "{DataConnections8}" ' + '--database-name "KustoDatabase8" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustoclustersstart +# EXAMPLE: KustoDatabasesListByCluster @try_manual -def step_kustoclustersstart(test, rg): - test.cmd('az kusto cluster start ' +def step_kustodatabaseslistbycluster(test, rg): + test.cmd('az kusto database list ' + '--cluster-name "{Clusters_3}" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoAttachedDatabaseConfigurationsListByCluster +@try_manual +def step_kustoattacheddatabaseconfigurationslistbycluster(test, rg): + test.cmd('az kusto attached-database-configuration list ' + '--cluster-name "{Clusters_3}" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoDatabasesGet +@try_manual +def step_kustodatabasesget(test, rg): + test.cmd('az kusto database show ' + '--cluster-name "{Clusters_3}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoDatabasesListByCluster +@try_manual +def step_kustodatabaseslistbycluster(test, rg): + test.cmd('az kusto database list ' '--cluster-name "{Clusters_3}" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustoclusterslistresourceskus +# EXAMPLE: KustoClustersListResourceSkus @try_manual def step_kustoclusterslistresourceskus(test, rg): test.cmd('az kusto cluster list-sku ' @@ -102,151 +157,217 @@ def step_kustoclusterslistresourceskus(test, rg): checks=[]) -# EXAMPLE: kustoclusterslistskus +# EXAMPLE: KustoClustersGet @try_manual -def step_kustoclusterslistskus(test, rg): - test.cmd('az kusto cluster list-sku', +def step_kustoclustersget(test, rg): + test.cmd('az kusto cluster show ' + '--cluster-name "{Clusters_3}" ' + '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabasescreateorupdate +# EXAMPLE: KustoClustersListByResourceGroup @try_manual -def step_kustodatabasescreateorupdate(test, rg): - test.cmd('az kusto database create ' - '--cluster-name "{Clusters_3}" ' - '--database-name "KustoDatabase8" ' - '--read-write-database location="westus" soft-delete-period="P1D" ' +def step_kustoclusterslistbyresourcegroup(test, rg): + test.cmd('az kusto cluster list ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabasechecknameavailability +# EXAMPLE: KustoClustersList @try_manual -def step_kustodatabasechecknameavailability(test, rg): +def step_kustoclusterslist(test, rg): + test.cmd('az kusto cluster list', + checks=[]) + + +# EXAMPLE: KustoClustersListSkus +@try_manual +def step_kustoclusterslistskus(test, rg): + test.cmd('az kusto cluster list-sku', + checks=[]) + + +# EXAMPLE: KustoOperationsList +@try_manual +def step_kustooperationslist(test, rg): # EXAMPLE NOT FOUND! pass -# EXAMPLE: kustodatabaseslistbycluster +# EXAMPLE: KustoDataConnectionsUpdate @try_manual -def step_kustodatabaseslistbycluster(test, rg): - test.cmd('az kusto database list ' +def step_kustodataconnectionsupdate(test, rg): + test.cmd('az kusto data-connection event-hub update ' '--cluster-name "{Clusters_3}" ' + '--data-connection-name "{DataConnections8}" ' + '--database-name "KustoDatabase8" ' + '--location "westus" ' + '--consumer-group "testConsumerGroup1" ' + '--event-hub-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.EventHu' + 'b/namespaces/eventhubTestns1/eventhubs/eventhubTest1" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabasesget +# EXAMPLE: KustoDataConnectionValidation @try_manual -def step_kustodatabasesget(test, rg): - test.cmd('az kusto database show ' +def step_kustodataconnectionvalidation(test, rg): + test.cmd('az kusto data-connection event-hub data-connection-validation ' '--cluster-name "{Clusters_3}" ' '--database-name "KustoDatabase8" ' + '--data-connection-name "{DataConnections8}" ' + '--consumer-group "testConsumerGroup1" ' + '--event-hub-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.EventHu' + 'b/namespaces/eventhubTestns1/eventhubs/eventhubTest1" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabasesupdate +# EXAMPLE: KustoDataConnectionsCheckNameAvailability @try_manual -def step_kustodatabasesupdate(test, rg): - test.cmd('az kusto database update ' +def step_kustodataconnectionschecknameavailability(test, rg): + # EXAMPLE NOT FOUND! + pass + + +# EXAMPLE: KustoDatabaseRemovePrincipals +@try_manual +def step_kustodatabaseremoveprincipals(test, rg): + test.cmd('az kusto database remove-principal ' '--cluster-name "{Clusters_3}" ' - '--database-name "KustoDatabase8" ' - '--read-write-database soft-delete-period="P1D" ' + '--database-name "databaseName1" ' + '--value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser role="Admin" ' + '--value name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup role="Viewer" ' + '--value name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp role="Admin" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabaseprincipalassignmentscreateorupdate +# EXAMPLE: KustoDatabaseListPrincipals @try_manual -def step_kustodatabaseprincipalassignmentscreateorupdate(test, rg): - test.cmd('az kusto database-principal-assignment create ' +def step_kustodatabaselistprincipals(test, rg): + test.cmd('az kusto database list-principal ' '--cluster-name "{Clusters_3}" ' - '--database-name "Kustodatabase8" ' - '--principal-id "d9a1f322-1293-4595-91e3-f54f8bb34725" ' - '--principal-type "App" ' - '--role "Admin" ' - '--tenant-id "33e01921-4d64-4f8c-a055-5bdaffd5e33d" ' - '--principal-assignment-name "kustoprincipal1" ' + '--database-name "databaseName1" ' '--resource-group "{rg}"', checks=[]) - test.cmd('az kusto database-principal-assignment wait --created ' + + +# EXAMPLE: KustoDatabaseAddPrincipals +@try_manual +def step_kustodatabaseaddprincipals(test, rg): + test.cmd('az kusto database add-principal ' '--cluster-name "{Clusters_3}" ' - '--database-name "Kustodatabase8" ' - '--principal-assignment-name "kustoprincipal1" ' + '--database-name "databaseName1" ' + '--value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser role="Admin" ' + '--value name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup role="Viewer" ' + '--value name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp role="Admin" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabaselistprincipals +# EXAMPLE: KustoDatabasesUpdate @try_manual -def step_kustodatabaselistprincipals(test, rg): - test.cmd('az kusto database list-principal ' +def step_kustodatabasesupdate(test, rg): + test.cmd('az kusto database update ' '--cluster-name "{Clusters_3}" ' - '--database-name "Kustodatabase8" ' + '--database-name "KustoDatabase8" ' + '--read-write-database soft-delete-period="P1D" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabaseprincipalassignmentsget +# EXAMPLE: KustoClusterDetachFollowerDatabases @try_manual -def step_kustodatabaseprincipalassignmentsget(test, rg): - test.cmd('az kusto database-principal-assignment show ' +def step_kustoclusterdetachfollowerdatabases(test, rg): + test.cmd('az kusto cluster detach-follower-database ' '--cluster-name "{Clusters_3}" ' - '--database-name "Kustodatabase8" ' - '--principal-assignment-name "kustoprincipal1" ' + '--attached-database-configuration-name "{AttachedDatabaseConfigurations_2}" ' + '--cluster-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Kusto/clu' + 'sters/{leader4}" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustodatabaseprincipalassignmentsdelete +# EXAMPLE: KustoDatabaseCheckNameAvailability @try_manual -def step_kustodatabaseprincipalassignmentsdelete(test, rg): - test.cmd('az kusto database-principal-assignment delete ' +def step_kustodatabasechecknameavailability(test, rg): + # EXAMPLE NOT FOUND! + pass + + +# EXAMPLE: KustoClusterListFollowerDatabases +@try_manual +def step_kustoclusterlistfollowerdatabases(test, rg): + test.cmd('az kusto cluster list-follower-database ' '--cluster-name "{Clusters_3}" ' - '--database-name "Kustodatabase8" ' - '--principal-assignment-name "kustoprincipal1" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustoclusterprincipalassignmentscreateorupdate +# EXAMPLE: KustoClustersStart @try_manual -def step_kustoclusterprincipalassignmentscreateorupdate(test, rg): - test.cmd('az kusto cluster-principal-assignment create ' +def step_kustoclustersstart(test, rg): + test.cmd('az kusto cluster start ' '--cluster-name "{Clusters_3}" ' - '--principal-id "d9a1f322-1293-4595-91e3-f54f8bb34725" ' - '--principal-type "App" ' - '--role "AllDatabasesViewer" ' - '--tenant-id "33e01921-4d64-4f8c-a055-5bdaffd5e33d" ' - '--principal-assignment-name "kustoprincipal1" ' '--resource-group "{rg}"', checks=[]) - test.cmd('az kusto cluster-principal-assignment wait --created ' - '--principal-assignment-name "kustoprincipal1" ' + + +# EXAMPLE: KustoClustersStop +@try_manual +def step_kustoclustersstop(test, rg): + test.cmd('az kusto cluster stop ' '--cluster-name "{Clusters_3}" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustoclusterprincipalassignmentsget +# EXAMPLE: KustoClustersUpdate @try_manual -def step_kustoclusterprincipalassignmentsget(test, rg): - test.cmd('az kusto cluster-principal-assignment show ' +def step_kustoclustersupdate(test, rg): + test.cmd('az kusto cluster update ' '--cluster-name "{Clusters_3}" ' - '--principal-assignment-name "kustoprincipal1" ' + '--identity-type "SystemAssigned" ' + '--location "westus" ' + '--enable-purge true ' + '--enable-streaming-ingest true ' + '--key-vault-properties key-name="keyName" key-vault-uri="https://dummy.keyvault.com" key-version="keyVers' + 'ion" ' '--resource-group "{rg}"', checks=[]) -# EXAMPLE: kustooperationslist +# EXAMPLE: KustoClustersCheckNameAvailability @try_manual -def step_kustooperationslist(test, rg): +def step_kustoclusterschecknameavailability(test, rg): # EXAMPLE NOT FOUND! pass -# EXAMPLE: kustodatabasesdelete +# EXAMPLE: AttachedDatabaseConfigurationsDelete +@try_manual +def step_attacheddatabaseconfigurationsdelete(test, rg): + test.cmd('az kusto attached-database-configuration delete ' + '--attached-database-configuration-name "{attachedDatabaseConfigurations1}" ' + '--cluster-name "{Clusters_3}" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoDataConnectionsDelete +@try_manual +def step_kustodataconnectionsdelete(test, rg): + test.cmd('az kusto data-connection delete ' + '--cluster-name "{Clusters_3}" ' + '--data-connection-name "{DataConnections_2}" ' + '--database-name "KustoDatabase8" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoDatabasesDelete @try_manual def step_kustodatabasesdelete(test, rg): test.cmd('az kusto database delete ' @@ -256,7 +377,7 @@ def step_kustodatabasesdelete(test, rg): checks=[]) -# EXAMPLE: kustoclustersdelete +# EXAMPLE: KustoClustersDelete @try_manual def step_kustoclustersdelete(test, rg): test.cmd('az kusto cluster delete ' @@ -265,6 +386,83 @@ def step_kustoclustersdelete(test, rg): checks=[]) +# EXAMPLE: KustoDatabasePrincipalAssignmentsGet +@try_manual +def step_kustodatabaseprincipalassignmentsget(test, rg): + test.cmd('az kusto database-principal-assignment show ' + '--cluster-name "{Clusters_4}" ' + '--database-name "Kustodatabase8" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoDatabasePrincipalAssignmentsCreateOrUpdate +@try_manual +def step_kustodatabaseprincipalassignmentscreateorupdate(test, rg): + test.cmd('az kusto database-principal-assignment create ' + '--cluster-name "{Clusters_4}" ' + '--database-name "Kustodatabase8" ' + '--principal-id "87654321-1234-1234-1234-123456789123" ' + '--principal-type "App" ' + '--role "Admin" ' + '--tenant-id "12345678-1234-1234-1234-123456789123" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=[]) + test.cmd('az kusto database-principal-assignment wait --created ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoDatabasePrincipalAssignmentsDelete +@try_manual +def step_kustodatabaseprincipalassignmentsdelete(test, rg): + test.cmd('az kusto database-principal-assignment delete ' + '--cluster-name "{Clusters_4}" ' + '--database-name "Kustodatabase8" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoClusterPrincipalAssignmentsGet +@try_manual +def step_kustoclusterprincipalassignmentsget(test, rg): + test.cmd('az kusto cluster-principal-assignment show ' + '--cluster-name "{Clusters_4}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoClusterPrincipalAssignmentsCreateOrUpdate +@try_manual +def step_kustoclusterprincipalassignmentscreateorupdate(test, rg): + test.cmd('az kusto cluster-principal-assignment create ' + '--cluster-name "{Clusters_4}" ' + '--principal-id "87654321-1234-1234-1234-123456789123" ' + '--principal-type "App" ' + '--role "Admin" ' + '--tenant-id "12345678-1234-1234-1234-123456789123" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=[]) + test.cmd('az kusto cluster-principal-assignment wait --created ' + '--resource-group "{rg}"', + checks=[]) + + +# EXAMPLE: KustoClusterPrincipalAssignmentsDelete +@try_manual +def step_kustoclusterprincipalassignmentsdelete(test, rg): + test.cmd('az kusto cluster-principal-assignment delete ' + '--cluster-name "{Clusters_4}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=[]) + + @try_manual def cleanup(test, rg): pass @@ -274,28 +472,45 @@ def cleanup(test, rg): def call_scenario(test, rg): setup(test, rg) step_kustoclusterscreateorupdate(test, rg) - step_kustoclusterschecknameavailability(test, rg) - step_kustoclustersget(test, rg) - step_kustoclusterslist(test, rg) - step_kustoclusterslistbyresourcegroup(test, rg) - step_kustoclustersstop(test, rg) - step_kustoclustersstart(test, rg) - step_kustoclusterslistresourceskus(test, rg) - step_kustoclusterslistskus(test, rg) step_kustodatabasescreateorupdate(test, rg) - step_kustodatabasechecknameavailability(test, rg) + step_kustodataconnectionscreateorupdate(test, rg) + step_attacheddatabaseconfigurationscreateorupdate(test, rg) + step_attacheddatabaseconfigurationsget(test, rg) + step_kustodataconnectionsget(test, rg) step_kustodatabaseslistbycluster(test, rg) + step_kustoattacheddatabaseconfigurationslistbycluster(test, rg) step_kustodatabasesget(test, rg) - step_kustodatabasesupdate(test, rg) - step_kustodatabaseprincipalassignmentscreateorupdate(test, rg) + step_kustodatabaseslistbycluster(test, rg) + step_kustoclusterslistresourceskus(test, rg) + step_kustoclustersget(test, rg) + step_kustoclusterslistbyresourcegroup(test, rg) + step_kustoclusterslist(test, rg) + step_kustoclusterslistskus(test, rg) + step_kustooperationslist(test, rg) + step_kustodataconnectionsupdate(test, rg) + step_kustodataconnectionvalidation(test, rg) + step_kustodataconnectionschecknameavailability(test, rg) + step_kustodatabaseremoveprincipals(test, rg) step_kustodatabaselistprincipals(test, rg) + step_kustodatabaseaddprincipals(test, rg) + step_kustodatabasesupdate(test, rg) + step_kustoclusterdetachfollowerdatabases(test, rg) + step_kustodatabasechecknameavailability(test, rg) + step_kustoclusterlistfollowerdatabases(test, rg) + step_kustoclustersstart(test, rg) + step_kustoclustersstop(test, rg) + step_kustoclustersupdate(test, rg) + step_kustoclusterschecknameavailability(test, rg) + step_attacheddatabaseconfigurationsdelete(test, rg) + step_kustodataconnectionsdelete(test, rg) + step_kustodatabasesdelete(test, rg) + step_kustoclustersdelete(test, rg) step_kustodatabaseprincipalassignmentsget(test, rg) + step_kustodatabaseprincipalassignmentscreateorupdate(test, rg) step_kustodatabaseprincipalassignmentsdelete(test, rg) - step_kustoclusterprincipalassignmentscreateorupdate(test, rg) step_kustoclusterprincipalassignmentsget(test, rg) - step_kustooperationslist(test, rg) - step_kustodatabasesdelete(test, rg) - step_kustoclustersdelete(test, rg) + step_kustoclusterprincipalassignmentscreateorupdate(test, rg) + step_kustoclusterprincipalassignmentsdelete(test, rg) cleanup(test, rg) @@ -313,11 +528,13 @@ def test_kusto(self, rg): 'Clusters_5': 'Clusters_5', 'AttachedDatabaseConfigurations_3': 'AttachedDatabaseConfigurations_3', 'leader4': 'leader4', - 'Clusters_2': 'testcli2', - 'Clusters_3': 'clitestcluster1', + 'Clusters_2': 'Clusters_2', + 'Clusters_3': 'Clusters_3', 'Clusters_4': 'Clusters_4', - 'attachedDatabaseConfigurations_1': 'attachedDatabaseConfigurations2', + 'attachedDatabaseConfigurations1': 'attachedDatabaseConfigurations1', 'AttachedDatabaseConfigurations_2': 'AttachedDatabaseConfigurations_2', + 'DataConnections8': 'DataConnections8', + 'DataConnections_2': 'DataConnections_2', }) call_scenario(self, rg) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py index c38a705e717..4da9e49005b 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py @@ -2013,7 +2013,7 @@ class ReadWriteDatabase(Database): :ivar statistics: The statistics of the database. :vartype statistics: ~azure.mgmt.kusto.models.DatabaseStatistics :ivar is_followed: Indicates whether the database is followed. - :vartype is_followed: str + :vartype is_followed: bool """ _validation = { @@ -2036,7 +2036,7 @@ class ReadWriteDatabase(Database): 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, - 'is_followed': {'key': 'properties.isFollowed', 'type': 'str'}, + 'is_followed': {'key': 'properties.isFollowed', 'type': 'bool'}, } def __init__( diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py index c0114c710a3..53ea0496ee5 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py @@ -2201,7 +2201,7 @@ class ReadWriteDatabase(Database): :ivar statistics: The statistics of the database. :vartype statistics: ~azure.mgmt.kusto.models.DatabaseStatistics :ivar is_followed: Indicates whether the database is followed. - :vartype is_followed: str + :vartype is_followed: bool """ _validation = { @@ -2224,7 +2224,7 @@ class ReadWriteDatabase(Database): 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, - 'is_followed': {'key': 'properties.isFollowed', 'type': 'str'}, + 'is_followed': {'key': 'properties.isFollowed', 'type': 'bool'}, } def __init__( diff --git a/src/kusto/report.md b/src/kusto/report.md new file mode 100644 index 00000000000..57dc35ceb3f --- /dev/null +++ b/src/kusto/report.md @@ -0,0 +1,561 @@ +# Azure CLI Module Creation Report + +### kusto attached-database-configuration create + +create a kusto attached-database-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name| +|**--location**|string|Resource location.|location| +|**--database-name**|string|The name of the database which you would like to attach, use * if you want to follow all current and future databases.|database_name| +|**--cluster-resource-id**|string|The resource id of the cluster where the databases you would like to attach reside.|cluster_resource_id| +|**--default-principals-modification-kind**|choice|The default principals modification kind|default_principals_modification_kind| +### kusto attached-database-configuration delete + +delete a kusto attached-database-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name| +### kusto attached-database-configuration list + +list a kusto attached-database-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto attached-database-configuration show + +show a kusto attached-database-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name| +### kusto attached-database-configuration update + +create a kusto attached-database-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name| +|**--location**|string|Resource location.|location| +|**--database-name**|string|The name of the database which you would like to attach, use * if you want to follow all current and future databases.|database_name| +|**--cluster-resource-id**|string|The resource id of the cluster where the databases you would like to attach reside.|cluster_resource_id| +|**--default-principals-modification-kind**|choice|The default principals modification kind|default_principals_modification_kind| +### kusto cluster add-language-extension + +add-language-extension a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--value**|array|The list of language extensions.|value| +### kusto cluster create + +create a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--location**|string|The geo-location where the resource lives|location| +|**--sku**|object|The SKU of the cluster.|sku| +|**--tags**|dictionary|Resource tags.|tags| +|**--zones**|array|The availability zones of the cluster.|zones| +|**--trusted-external-tenants**|array|The cluster's external tenants.|trusted_external_tenants| +|**--optimized-autoscale**|object|Optimized auto scale definition.|optimized_autoscale| +|**--enable-disk-encryption**|boolean|A boolean value that indicates if the cluster's disks are encrypted.|enable_disk_encryption| +|**--enable-streaming-ingest**|boolean|A boolean value that indicates if the streaming ingest is enabled.|enable_streaming_ingest| +|**--virtual-network-configuration**|object|Virtual network definition.|virtual_network_configuration| +|**--key-vault-properties**|object|KeyVault properties for the cluster encryption.|key_vault_properties| +|**--enable-purge**|boolean|A boolean value that indicates if the purge operations are enabled.|enable_purge| +|**--language-extensions-value**|array|The list of language extensions.|value| +|**--identity-type**|sealed-choice|The identity type.|type_identity_type| +|**--identity-user-assigned-identities**|dictionary|The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.|user_assigned_identities| +### kusto cluster delete + +delete a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster detach-follower-database + +detach-follower-database a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--cluster-resource-id**|string|Resource id of the cluster that follows a database owned by this cluster.|cluster_resource_id| +|**--attached-database-configuration-name**|string|Resource name of the attached database configuration in the follower cluster.|attached_database_configuration_name| +### kusto cluster diagnose-virtual-network + +diagnose-virtual-network a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster list + +list a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +### kusto cluster list-follower-database + +list-follower-database a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster list-language-extension + +list-language-extension a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster list-sku + +list-sku a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster remove-language-extension + +remove-language-extension a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--value**|array|The list of language extensions.|value| +### kusto cluster show + +show a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster start + +start a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster stop + +stop a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster update + +update a kusto cluster. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--tags**|dictionary|Resource tags.|tags| +|**--location**|string|Resource location.|location| +|**--sku**|object|The SKU of the cluster.|sku| +|**--trusted-external-tenants**|array|The cluster's external tenants.|trusted_external_tenants| +|**--optimized-autoscale**|object|Optimized auto scale definition.|optimized_autoscale| +|**--enable-disk-encryption**|boolean|A boolean value that indicates if the cluster's disks are encrypted.|enable_disk_encryption| +|**--enable-streaming-ingest**|boolean|A boolean value that indicates if the streaming ingest is enabled.|enable_streaming_ingest| +|**--virtual-network-configuration**|object|Virtual network definition.|virtual_network_configuration| +|**--key-vault-properties**|object|KeyVault properties for the cluster encryption.|key_vault_properties| +|**--enable-purge**|boolean|A boolean value that indicates if the purge operations are enabled.|enable_purge| +|**--language-extensions-value**|array|The list of language extensions.|value| +|**--identity-type**|sealed-choice|The identity type.|type_identity_type| +|**--identity-user-assigned-identities**|dictionary|The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.|user_assigned_identities| +### kusto cluster-principal-assignment create + +create a kusto cluster-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +|**--principal-id**|string|The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.|principal_id| +|**--role**|choice|Cluster principal role.|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id| +|**--principal-type**|choice|Principal type.|principal_type| +### kusto cluster-principal-assignment delete + +delete a kusto cluster-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +### kusto cluster-principal-assignment list + +list a kusto cluster-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto cluster-principal-assignment show + +show a kusto cluster-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +### kusto cluster-principal-assignment update + +create a kusto cluster-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +|**--principal-id**|string|The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.|principal_id| +|**--role**|choice|Cluster principal role.|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id| +|**--principal-type**|choice|Principal type.|principal_type| +### kusto data-connection delete + +delete a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +### kusto data-connection event-grid create + +event-grid create a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|event_grid_location| +|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id| +|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id| +|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name| +### kusto data-connection event-grid data-connection-validation + +event-grid data-connection-validation a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|event_grid_location| +|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id| +|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id| +|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name| +### kusto data-connection event-grid update + +event-grid update a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|event_grid_location| +|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id| +|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id| +|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name| +### kusto data-connection event-hub create + +event-hub create a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|event_hub_location| +|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id| +|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format| +|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties| +### kusto data-connection event-hub data-connection-validation + +event-hub data-connection-validation a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|event_hub_location| +|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id| +|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format| +|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties| +### kusto data-connection event-hub update + +event-hub update a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|event_hub_location| +|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id| +|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format| +|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties| +### kusto data-connection iot-hub create + +iot-hub create a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|iot_hub_location| +|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id| +|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format| +|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties| +### kusto data-connection iot-hub data-connection-validation + +iot-hub data-connection-validation a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|iot_hub_location| +|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id| +|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format| +|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties| +### kusto data-connection iot-hub update + +iot-hub update a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +|**--location**|string|Resource location.|iot_hub_location| +|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id| +|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format| +|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties| +### kusto data-connection list + +list a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +### kusto data-connection show + +show a kusto data-connection. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name| +### kusto database add-principal + +add-principal a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--value**|array|The list of Kusto database principals.|value| +### kusto database create + +create a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--read-write-database**|object|Class representing a read write database.|read_write_database| +|**--read-only-following-database**|object|Class representing a read only following database.|read_only_following_database| +### kusto database delete + +delete a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +### kusto database list + +list a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +### kusto database list-principal + +list-principal a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +### kusto database remove-principal + +remove-principal a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--value**|array|The list of Kusto database principals.|value| +### kusto database show + +show a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +### kusto database update + +update a kusto database. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--read-write-database**|object|Class representing a read write database.|read_write_database| +|**--read-only-following-database**|object|Class representing a read only following database.|read_only_following_database| +### kusto database-principal-assignment create + +create a kusto database-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +|**--principal-id**|string|The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.|principal_id| +|**--role**|choice|Database principal role.|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id| +|**--principal-type**|choice|Principal type.|principal_type| +### kusto database-principal-assignment delete + +delete a kusto database-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +### kusto database-principal-assignment list + +list a kusto database-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +### kusto database-principal-assignment show + +show a kusto database-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +### kusto database-principal-assignment update + +create a kusto database-principal-assignment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name| +|**--principal-id**|string|The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.|principal_id| +|**--role**|choice|Database principal role.|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id| +|**--principal-type**|choice|Principal type.|principal_type| \ No newline at end of file