File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
examples/webapp-management Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
printf " \n=== Managing Web Apps in Azure ===\n"
3
3
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
-
19
4
printf " \nSetup: Creating a new resource group: %s at location: %s.\n" " $groupName " " $location "
20
5
azure group create --name " $groupName " --location " $location "
21
6
@@ -180,7 +165,7 @@ azure webapp profile reset -g "$groupName" -n "$appName3"
180
165
filename2=` randomName pf`
181
166
filename2+=" .xml"
182
167
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" `
184
169
[ -e " $filename2 " ]
185
170
[ -s " $filename2 " ]
186
171
You can’t perform that action at this time.
0 commit comments