Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit b9c047f

Browse files
CopilotLuizMacedo
andcommitted
Complete Lab 14 fixes with troubleshooting section and file validation steps
Co-authored-by: LuizMacedo <45747223+LuizMacedo@users.noreply.github.com>
1 parent 0e2f3b3 commit b9c047f

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

Instructions/Labs/AZ400_M08_L14_Monitor_Application_Performance_with_Azure_Load_Testing.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,12 @@ Perform the following steps to download the input files for an existing load tes
386386
1. Within Repos, browse to the **/tests/jmeter** subfolder just created.
387387
1. Open the Load Testing **config.yaml** file. Click **Edit** to allow editing of the file.
388388
1. Replace the **displayName** and **testId** attributes with the value **ado_load_test**
389+
1. Save the changes to the config.yaml file by clicking **Commit**.
389390

390391
![Screenshot of the edited config file.](images/config_edit.png)
391392

393+
1. Verify that the config.yaml and quick_test.jmx files are properly saved in the **/tests/jmeter** folder before proceeding to the next task.
394+
392395
#### Task 4: Update the CI/CD workflow YAML definition file
393396

394397
1. To create and run a load test, the Azure Pipelines workflow definition uses the **Azure Load Testing task extension** from the Azure DevOps Marketplace. Open the [Azure Load Testing task extension](https://marketplace.visualstudio.com/items?itemName=AzloadTest.AzloadTesting) in the Azure DevOps Marketplace, and select **Get it free**.
@@ -406,6 +409,8 @@ Perform the following steps to download the input files for an existing load tes
406409
- **Load Test Run Description**: load testing from ADO
407410

408411
> **Note**: The pipeline may require permissions to be granted. If prompted, select **View**, then select **Permit**, and select **Permit** again to grant the necessary permissions.
412+
413+
> **Note**: If you encounter an "invalid file name error" during the Azure Load Test phase, ensure that the config.yaml file path is correct and that the file was properly uploaded to the repository. You may need to verify the file exists at the specified path in your repository.
409414

410415
1. Confirm the injection of the parameters as a snippet of YAML by clicking **Add**
411416
1. If the indentation of the YAML snippet is giving errors (red squiggly lines), fix them by adding 2 spaces or tab to position the snippet correctly.
@@ -478,7 +483,7 @@ In this task, You'll use load test fail criteria to get alerted (have a failed p
478483

479484
1. From Azure DevOps, navigate to the eShopOnWeb Project, and open **Repos**.
480485
1. Within Repos, browse to the **/tests/jmeter** subfolder created and used earlier.
481-
1. Open the Load Testing \*config.yaml** file. Click **Edit\*\* to allow editing of the file.
486+
1. Open the Load Testing **config.yaml** file. Click **Edit** to allow editing of the file.
482487
1. Replace `failureCriteria: []` if present, otherwise append the following snippet of code:
483488

484489
```text
@@ -532,6 +537,18 @@ In this task, You'll use load test fail criteria to get alerted (have a failed p
532537
> [!IMPORTANT]
533538
> Remember to delete the resources created in the Azure portal to avoid unnecessary charges.
534539

540+
## Troubleshooting
541+
542+
If you encounter issues during the lab, try the following solutions:
543+
544+
- **Invalid file name error in Azure Load Test**: Ensure that the config.yaml and quick_test.jmx files are properly uploaded to the `/tests/jmeter` folder in your repository. Verify the file paths are correct in the Load Test File configuration.
545+
546+
- **Microsoft.Web provider not registered**: Run `az provider register --namespace Microsoft.Web` in the Cloud Shell if you encounter registration errors when creating the App Service Plan.
547+
548+
- **Pipeline permission issues**: When the pipeline requires permissions, select **View**, then **Permit**, and **Permit** again to grant access to Azure resources.
549+
550+
- **File upload issues**: When uploading files to Azure Repos, make sure to click **Create** first to create folders, then **Commit** to save changes. You may need to commit twice for file uploads.
551+
535552
## Review
536553

537554
In this exercise, you deployed a web app to Azure App Service by using Azure Pipelines, as well as deploying an Azure Load Testing Resource with TestRuns. Next, you integrated the JMeter load testing config.yaml file to Azure Repos source control, and extending your CI/CD pipeline with the Azure Load Testing. In the last exercise, you learned how to define the success criteria of the LoadTest.

0 commit comments

Comments
 (0)