Skip to content

Commit c5d59cd

Browse files
committed
monor mods
1 parent 907e11d commit c5d59cd

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

examples/webapp-management/03-WebApp.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
#!/bin/bash
22
printf "\n=== Managing Web Apps in Azure ===\n"
33

4-
#setup
5-
login() {
6-
echo "Executing Login..."
7-
export CmdletSessionID=1010
8-
azure account add --username $azureuser --password $azurepassword
9-
}
10-
export -f login
11-
randomName() {
12-
echo "$1$RANDOM"
13-
}
14-
export -f randomName
15-
login
16-
export groupName=`randomName testrg`
17-
export location="westus"
18-
194
printf "\nSetup: Creating a new resource group: %s at location: %s.\n" "$groupName" "$location"
205
azure group create --name "$groupName" --location "$location"
216

@@ -180,7 +165,7 @@ azure webapp profile reset -g "$groupName" -n "$appName3"
180165
filename2=`randomName pf`
181166
filename2+=".xml"
182167
printf "\n27: Get the publish profile for webapp: %s after resetting and save it to %s file\n." "$appName3" "$filename2"
183-
pubprof2=`azure webapp profile get -g "$groupName" -n "$appName3" --outputfile "filename2"`
168+
pubprof2=`azure webapp profile get -g "$groupName" -n "$appName3" --outputfile "$filename2"`
184169
[ -e "$filename2" ]
185170
[ -s "$filename2" ]
186171

0 commit comments

Comments
 (0)