diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index e5175a0a..3a0066ff 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -78,6 +78,13 @@ jobs:
loadTestConfigFile: 'SampleApp.yaml'
loadTestResource: ${{ env.LOAD_TEST_RESOURCE }}
resourceGroup: ${{ env.LOAD_TEST_RESOURCE_GROUP }}
+ env: |
+ [
+ {
+ "name": "webapp",
+ "value": "${{ env.AZURE_WEBAPP_NAME }}.azurewebsites.net"
+ }
+ ]
- uses: actions/upload-artifact@v2
with:
diff --git a/SampleApp.jmx b/SampleApp.jmx
index eaabd5b4..976c5cbf 100644
--- a/SampleApp.jmx
+++ b/SampleApp.jmx
@@ -33,7 +33,7 @@
- issacnitineastustest76eastus.azurewebsites.net
+ ${udv_webapp}
https
@@ -93,7 +93,7 @@
- issacnitineastustest76eastus.azurewebsites.net
+ ${udv_webapp}
https
@@ -146,7 +146,7 @@
- issacnitineastustest76eastus.azurewebsites.net
+ ${udv_webapp}
https
@@ -178,6 +178,17 @@
+
+
+
+ udv_webapp
+ ${__BeanShell( System.getenv("webapp") )}
+ Web App URL
+ =
+
+
+
+
diff --git a/SampleApp_Secrets.jmx b/SampleApp_Secrets.jmx
index 2d11b0e9..bf85a919 100644
--- a/SampleApp_Secrets.jmx
+++ b/SampleApp_Secrets.jmx
@@ -20,6 +20,12 @@
Value for x-secret header
=
+
+ udv_webapp
+ ${__BeanShell( System.getenv("webapp") )}
+ Web App URL
+ =
+
@@ -53,7 +59,7 @@
- isaacnitinwus2.azurewebsites.net
+ ${udv_webapp}
https
@@ -122,7 +128,7 @@
- isaacnitinwus2.azurewebsites.net
+ ${udv_webapp}
https
@@ -184,7 +190,7 @@
- isaacnitinwus2.azurewebsites.net
+ ${udv_webapp}
https
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 660e40c6..f1348617 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -59,10 +59,10 @@ stages:
subscriptionId: $(azureSubscriptionId)
action: 'Create Or Update Resource Group'
resourceGroupName: '$(webAppName)-rg'
- location: 'East US'
+ location: $(location)
templateLocation: 'Linked artifact'
csmFile: '$(System.DefaultWorkingDirectory)/windows-webapp-template.json'
- overrideParameters: '-webAppName $(webAppName) -hostingPlanName $(webAppName)-host -appInsightsLocation "East US" -databaseAccountId $(webAppName)db -databaseAccountLocation "East US"'
+ overrideParameters: '-webAppName $(webAppName) -hostingPlanName $(webAppName)-host -appInsightsLocation "$(location)" -databaseAccountId $(webAppName)db -databaseAccountLocation "$(location)"'
deploymentMode: 'Incremental'
deploymentOutputs: 'output'
@@ -133,6 +133,13 @@ stages:
loadTestConfigFile: 'SampleApp.yaml'
resourceGroup: $(loadTestResourceGroup)
loadTestResource: $(loadTestResource)
-
+ env: |
+ [
+ {
+ "name": "webapp",
+ "value": "$(webAppName).azurewebsites.net"
+ }
+ ]
+
- publish: $(System.DefaultWorkingDirectory)/loadTest
artifact: results