@@ -13,6 +13,7 @@ printf "\nSetup: Creating a new resource group: %s at location: %s.\n" "$groupNa
13
13
# appName1=`randomName testweb`
14
14
# appName2=`randomName testweb`
15
15
# appName3=`randomName testweb`
16
+ # appName4=`randomName testweb`
16
17
# planName1=`randomName testplan`
17
18
# planName2=`randomName testplan`
18
19
# planName3=`randomName testplan`
@@ -143,30 +144,29 @@ printf "\n18. Create a new web app for clone testing"
143
144
location1=" eastus"
144
145
145
146
az app service plan set -n " $planName1 " -g " $groupName " --tier " $tier2 "
146
- webappInfo2=` az webapp create -g " $groupName " -n " $appName2 " -l " $location " --plan " $planName2 " `
147
+ webappInfo2=` az webapp create -g " $groupName " -n " $appName3 " -l " $location " --plan " $planName1 " `
147
148
148
149
printf " \n19. Clone web app slot to a slot."
149
- slotClone=` az webapp slot create -g " $groupName " -n " $appName2 " --slot " $slotname3 " --sourcewebapp " $webappInfo2 " `
150
- appWithSlotNameClone=" $appName2 /$slotname3 "
150
+ slotClone=` az webapp slot create -g " $groupName " -n " $appName3 " --slot " $slotname3 " --sourcewebapp " $webappInfo2 " `
151
+ appWithSlotNameClone=" $appName3 /$slotname3 "
151
152
152
153
printf " \nValidating cloned web app slot %s " " $slotname3 "
153
154
[ $( echo $slotClone | jq ' .name' --raw-output) == " $appWithSlotNameClone " ]
154
155
155
156
printf " \nValidating web app slot get for %s " " $slotname3 "
156
- slotClone=` az webapp slot get -g " $groupName " -n " $appName2 " --slot " $slotname3 " `
157
+ slotClone=` az webapp slot get -g " $groupName " -n " $appName3 " --slot " $slotname3 " `
157
158
[ $( echo $slotClone | jq ' .name' --raw-output) == " $appWithSlotNameClone " ]
158
159
159
160
printf " \n20. Create a new web app for clone testing"
160
- slot2=` az webapp slot create -g " $groupName " --plan " $planName2 " -n " $appName2 " --slot " $slotname3 " `
161
- slotN1=" $appName2 /$slotname3 "
161
+ slot2=` az webapp slot create -g " $groupName " --plan " $planName1 " -n " $appName3 " --slot " $slotname3 " `
162
162
163
163
printf " \n21. Create a new web app for clone testing"
164
164
servicePlan=` az app service plan create -n " $planName3 " -g " $groupName " -l " $location1 " --tier " $tier2 " `
165
- webappInfo3=` az webapp create -g " $groupName " -n " $appName3 " -l " $location1 " --plan " $planName3 " `
166
- slot3=` az webapp slot create -g " $groupName " -n " $appName3 " --slot " $slotname3 " --sourcewebapp " $webappInfo3 " `
165
+ webappInfo3=` az webapp create -g " $groupName " -n " $appName4 " -l " $location1 " --plan " $planName3 " `
166
+ slot3=` az webapp slot create -g " $groupName " --plan " $planName3 " - n " $appName4 " --slot " $slotname3 " --sourcewebapp " $slot2 " `
167
167
168
168
printf " \nValidating web app slot get for %s " " $slotname3 "
169
- appWithSlotName3=" $appName3 /$slotname3 "
169
+ appWithSlotName3=" $appName4 /$slotname3 "
170
170
[ $( echo $slot3 | jq ' .name' --raw-output) == " $appWithSlotName3 " ]
171
171
172
172
# Cleanup
0 commit comments