From 314ce2e563adfa8561ee6f4538df785cca34331b Mon Sep 17 00:00:00 2001 From: Michal Stromko Date: Thu, 29 Apr 2021 19:49:07 +0000 Subject: [PATCH] =?UTF-8?q?Smazat=20=E2=80=9Epages/students/2019/michal=5F?= =?UTF-8?q?stromko/vp2021/dokumentacia/sql=5Fdatabase.sh=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vp2021/dokumentacia/sql_database.sh | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 pages/students/2019/michal_stromko/vp2021/dokumentacia/sql_database.sh diff --git a/pages/students/2019/michal_stromko/vp2021/dokumentacia/sql_database.sh b/pages/students/2019/michal_stromko/vp2021/dokumentacia/sql_database.sh deleted file mode 100644 index 9e123d8fd..000000000 --- a/pages/students/2019/michal_stromko/vp2021/dokumentacia/sql_database.sh +++ /dev/null @@ -1,47 +0,0 @@ -# Vytvorenie sql databazy - - -# Set the resource group name and location for your server -resourceGroupName=myResourceGroup -location=eastus - -# Set an admin login and password for your database -adminlogin=azureuser -password=Azure1234567! - -# Set a server name that is unique to Azure DNS (.database.windows.net) -serverName=server-$RANDOM - -# Set the ip address range that can access your database -startip=0.0.0.0 -endip=0.0.0.0 - -# Create a resource Group -az group create --name $resourceGroupName --location $location - -# Create a server -az sql server create \ - --name $serverName \ - --resource-group $resourceGroupName \ - --location $location \ - --admin-user $adminlogin \ - --admin-password $password - -# Configure a firewall rule for server -az sql server firewall-rule create \ - --resource-group $resourceGroupName \ - --server $serverName \ - -n AllowYourIp \ - --start-ip-address $startip \ - --end-ip-address $endip - -# Create a single database with Azure CLI -az sql db create \ - --resource-group $resourceGroupName \ - --server $serverName \ - --name mySampleDatabase \ - --sample-name AdventureWorksLT \ - --edition GeneralPurpose \ - --compute-model Serverless \ - --family Gen5 \ - --capacity 2