Skip to content

Commit 19a6269

Browse files
committed
edits per Shreya
1 parent 09e144e commit 19a6269

18 files changed

Lines changed: 39 additions & 35 deletions

File tree

sql-database/backup-database/backup-database.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tag="backup-database"
@@ -15,7 +15,7 @@ bacpac="backup.bacpac"
1515

1616
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1717

18-
echo "Creating resource group $resource..."
18+
echo "Creating $resourceGroup in $location..."
1919
az group create --name $resourceGroup --location "$location" --tag $tag
2020

2121
echo "Creating $storage..."

sql-database/copy-database-to-new-server/copy-database-to-new-server.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tag="copy-database-to-new-server"
@@ -16,7 +16,7 @@ targetDatabase="msdocs-azuresql-targetDatabase-$randomIdentifier"
1616

1717
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1818

19-
echo "Creating $resourceGroup and $targetResourceGroup..."
19+
echo "Creating $resourceGroup in location $location and $targetResourceGroup in $targetLocation..."
2020
az group create --name $resourceGroup --location "$location" --tag $tag
2121
az group create --name $targetResourceGroup --location "$targetLocation"
2222

sql-database/create-and-configure-database/create-and-configure-database.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tag="create-and-configure-database"
@@ -16,7 +16,7 @@ endIp=0.0.0.0
1616

1717
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1818

19-
echo "Creating $resource in $location..."
19+
echo "Creating $resourceGroup in $location..."
2020
az group create --name $resourceGroup --location "$location" --tag $tag
2121

2222
echo "Creating $server in $location..."

sql-database/database-auditing-and-threat-detection/database-auditing-and-threat-detection.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tag="database-auditing-and-threat-detection"
@@ -14,7 +14,7 @@ notification="changeto@your.email;changeto@your.email"
1414

1515
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1616

17-
echo "Creating $resource in $location..."
17+
echo "Creating $resourceGroup in $location..."
1818
az group create --name $resourceGroup --location "$location" --tag $tag
1919

2020
echo "Creating $server in $location..."

sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tag="add-elastic-pool-to-failover-group-az-cli"
@@ -17,7 +17,7 @@ secondaryServer="msdocs-azuresql-secondary-server-$randomIdentifier"
1717

1818
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1919

20-
echo "Creating $resource in $location..."
20+
echo "Creating $resourceGroup in $location..."
2121
az group create --name $resourceGroup --location "$location" --tag $tag
2222

2323
echo "Creating $server in $location..."

sql-database/failover-groups/add-managed-instance-to-failover-group-az-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# So, not surfaced in md file or in TOC
77
# Due to deployment times, you should plan for a full day to complete the entire script. You can monitor deployment progress in the activity log within the Azure portal. For more information on deployment times, see https://docs.microsoft.com/azure/sql-database/sql-database-managed-instance#managed-instance-management-operations.
88

9-
let randomIdentifier=$RANDOM*$RANDOM
9+
let "randomIdentifier=$RANDOM*$RANDOM"
1010
location="East US"
1111
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
1212
tag="add-managed-instance-to-failover-group-az-cli"
@@ -35,7 +35,7 @@ failoverGatewayConnection="$failoverGateway-connection"
3535

3636
echo "Using resource groups $resourceGroup and $failoverResourceGroup with login: $login, password: $password..."
3737

38-
echo "Creating $resource in $location..."
38+
echo "Creating $resourceGroup in $location and $failoverResourceGroup in $failoverLocation..."
3939
az group create --name $resourceGroup --location "$location" --tag $tag
4040
az group create --name $failoverResourceGroup --location "$failoverLocation"
4141

sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tag="add-single-db-to-failover-group-az-cli"
@@ -15,7 +15,7 @@ secondaryServer="msdocs-azuresql-secondary-server-$randomIdentifier"
1515

1616
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1717

18-
echo "Creating $resource in $location..."
18+
echo "Creating $resourceGroup in $location..."
1919
az group create --name $resourceGroup --location "$location" --tag $tag
2020

2121
echo "Creating $server in $location..."

sql-database/import-from-bacpac/import-from-bacpac.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tag="import-from-bacpac"
@@ -16,7 +16,7 @@ bacpac="sample.bacpac"
1616

1717
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1818

19-
echo "Creating $resource in $location..."
19+
echo "Creating $resourceGroup in $location..."
2020
az group create --name $resourceGroup --location "$location" --tag $tag
2121

2222
echo "Creating $storage..."

sql-database/managed-instance/create-managed-instance.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Due to deployment times, you should plan for a full day to complete the entire script. You can monitor deployment progress in the activity log within the Azure portal. For more information on deployment times, see https://docs.microsoft.com/azure/sql-database/sql-database-managed-instance#managed-instance-management-operations.
55
# Use Bash rather than Cloud Shell due to its timeout at 20 minutes when no interactive activity
6-
let randomIdentifier=$RANDOM*$RANDOM
6+
let "randomIdentifier=$RANDOM*$RANDOM"
77
location="East US"
88
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
99
tag="create-managed-instance"
@@ -17,7 +17,7 @@ password="Pa$$w0rD-$randomIdentifier"
1717

1818
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1919

20-
echo "Creating $resource in $location..."
20+
echo "Creating $resourceGroup in $location..."
2121
az group create --name $resourceGroup --location "$location" --tag $tag
2222

2323
echo "Creating $vNet with $subnet..."

sql-database/monitor-and-scale-database/monitor-and-scale-database.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Passed validation in Cloud Shell 12/01/2021
33

4-
let randomIdentifier=$RANDOM*$RANDOM
4+
let "randomIdentifier=$RANDOM*$RANDOM"
55
location="East US"
66
resourceGroup="msdocs-azuresql-rg-$randomIdentifier"
77
tags="monitor-and-scale-database"
@@ -12,7 +12,7 @@ password="Pa$$w0rD-$randomIdentifier"
1212

1313
echo "Using resource group $resourceGroup with login: $login, password: $password..."
1414

15-
echo "Creating $resource in $location..."
15+
echo "Creating $resourceGroup in $location..."
1616
az group create --name $resourceGroup --location "$location" --tag $tag
1717

1818
echo "Creating $server on $resource..."

0 commit comments

Comments
 (0)