Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Explorer Kusto Cluster ,Create & Delete #17

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions data explorer/create/cluster-create.azcli
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
#################################################################################
# project: az-kung-fu
# http://www.build5nines.com/az-kung-fu
# MIT License - https://github.com/Build5Nines/az-kung-fu
# WARNING: These scripts could either cause resume generating events or get you promoted.
# Please, proceed with extreme caution!
#################################################################################
# Script Purpose
# - Create a Data Explorer Cluster with System Assigned Managed Identity
# Script Usage
# - Update the variables including SKU, cluster name, capacity, tier to create the Data Explorer Cluster
###########################################################################################
########### IMPORTANT DETAIL ##############################################################
# Until this time the kusto extension is recommended to be installed #####################
# az extension add -n kusto

## Assign your Azure subscription name or id
az account set -s "[subscription_name_here]"

## Assign variables
# No commas in Availablity zones (Optional) just plain numbers (1 2 3) with spaces in single quotes
rg=[resource_group_name]
location=[azure_region_name]
name=[cluster_name]
Capacity=[number_of_nodes]
tier=['Basic'_or_'Standard']
zones=['1 2 3']
type="SystemAssigned"
#Create the cluster
#Watch the Cluster Name : Allowed values: Standard_DS13_v2+1TB_PS, Standard_DS13_v2+2TB_PS, Standard_DS14_v2+3TB_PS, Standard_DS14_v2+4TB_PS, Standard_D13_v2, Standard_D14_v2, Standard_L8s, Standard_L16s, Standard_D11_v2, Standard_D12_v2, Standard_L4s, Dev(No SLA)_Standard_D11_v2, Standard_E2a_v4, Standard_E4a_v4, Standard_E8a_v4, Standard_E16a_v4, Standard_E8as_v4+1TB_PS, Standard_E8as_v4+2TB_PS, Standard_E16as_v4+3TB_PS, Standard_E16as_v4+4TB_PS, Dev(No SLA)_Standard_E2a_v4
az kusto cluster create -g $rg \
-l $location \
-n $name \
--sku name='allowed_value' capacity=$Capacity tier=$tier \
--zones $zones \
--type $type
21 changes: 21 additions & 0 deletions data explorer/delete/cluster-delete.azcli
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
#################################################################################
# project: az-kung-fu
# http://www.build5nines.com/az-kung-fu
# MIT License - https://github.com/Build5Nines/az-kung-fu
# WARNING: These scripts could either cause resume generating events or get you promoted.
# Please, proceed with extreme caution!
#################################################################################
# Script Purpose
# - Delete a Data Explorer Cluster in an Azure Subscription
# The -y would not ask for confirmation , use carefully
#********************************************************************************
## Assign variables
rg=[resource_group_name]
name=[kusto-cluster_name]


## Delete Kusto Cluster
az kusto cluster delete -g $rg \
-n $name\
-y
29 changes: 29 additions & 0 deletions data explorer/list/cluster-list.azcli
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
#################################################################################
# project: az-kung-fu
# http://www.build5nines.com/az-kung-fu
# MIT License - https://github.com/Build5Nines/az-kung-fu
# WARNING: These scripts could either cause resume generating events or get you promoted.
# Please, proceed with extreme caution!
#################################################################################
# Script Purpose
# - List resource groups
# Script Usage
# - Update variables to list resource groups
# - Query for resource groups by region name
##################################################################################

## Assign your Azure subscription name or id
az account set -s "[subscription_name_here]"

## Assign variables
rg="[resource_group_name]"
location=[azure_region_name]

# List Kusto Clusters in Subsrciption in Table format
az kusto cluster list -o table

# List the Kusto Cluters in a resource gorup in Table format
az kusto cluster list -g $rg \
-o table