You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/load-testing/how-to-test-private-endpoint.md
+92-56Lines changed: 92 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ services: load-testing
6
6
ms.service: load-testing
7
7
ms.author: nicktrog
8
8
author: ntrogh
9
-
ms.date: 09/09/2022
9
+
ms.date: 11/04/2022
10
10
ms.topic: how-to
11
11
ms.custom: references_regions
12
12
---
@@ -34,7 +34,7 @@ When you start the load test, Azure Load Testing service injects the following A
34
34
- A network security group (NSG).
35
35
- An Azure Load Balancer.
36
36
37
-
These resources are ephemeral and exist only for the duration of the load test run. If you restrict access to your virtual network, you need to [configure your virtual network](#configure-your-virtual-network) to enable communication between these Azure Load Testing and the injected VMs.
37
+
These resources are ephemeral and exist only during the load test run. If you restrict access to your virtual network, you need to [configure your virtual network](#configure-your-virtual-network) to enable communication between these Azure Load Testing and the injected VMs.
38
38
39
39
> [!NOTE]
40
40
> Virtual network support for Azure Load Testing is available in the following Azure regions: Australia East, East US, East US 2, North Europe, South Central US, UK South, and West US 2.
@@ -46,6 +46,7 @@ These resources are ephemeral and exist only for the duration of the load test r
46
46
47
47
- An existing virtual network and a subnet to use with Azure Load Testing.
48
48
- The virtual network must be in the same subscription and the same region as the Azure Load Testing resource.
49
+
- The virtual network address range cannot overlap with 172.29.0.0/30, the address range that Azure Load Testing uses.
49
50
- You require the [Network Contributor](/azure/role-based-access-control/built-in-roles#network-contributor) role, or a parent of this role, on the virtual network. See [Check access for a user to Azure resources](/azure/role-based-access-control/check-access) to verify your permissions.
50
51
- The subnet you use for Azure Load Testing must have enough unassigned IP addresses to accommodate the number of load test engines for your test. Learn more about [configuring your test for high-scale load](./how-to-high-scale-load.md).
51
52
- The subnet shouldn't be delegated to any other Azure service. For example, it shouldn't be delegated to Azure Container Instances (ACI). Learn more about [subnet delegation](/azure/virtual-network/subnet-delegation-overview).
@@ -212,88 +213,123 @@ To configure the load test with your virtual network settings, update the [YAML
212
213
213
214
## Troubleshooting
214
215
215
-
### Creating or updating the load test fails with `Subnet ID passed is invalid`
216
+
### Creating or updating the load test fails with `Subscription not registered with Microsoft.Batch (ALTVNET001)`
216
217
217
-
To configure a load test in a virtual network, you must have sufficient permissions for managing virtual networks. You require the [Network Contributor](/azure/role-based-access-control/built-in-roles#network-contributor) role, or a parent of this role, on the virtual network. See [Check access for a user to Azure resources](/azure/role-based-access-control/check-access) to verify your permissions.
218
+
When you configure a load test in a virtual network, the subscription has to be registered with `Microsoft.Batch`.
218
219
219
-
### Starting the load test fails with `Test cannot be started`
220
+
1. Try to create or update the load test again after a few minutes.
220
221
221
-
To start a load test, you must have sufficient permissions to deploy Azure Load Testing to the virtual network. You require the [Network Contributor](/azure/role-based-access-control/built-in-roles#network-contributor) role, or a parent of this role, on the virtual network. See [Check access for a user to Azure resources](/azure/role-based-access-control/check-access) to verify your permissions.
222
+
1. If the error persists, follow these steps to [register your subscription](/azure/azure-resource-manager/management/resource-providers-and-types#register-resource-provider) with the `Microsoft.Batch` resource provider manually.
222
223
223
-
If you're using the [Azure Load Testing REST API](/rest/api/loadtesting/) to start a load test, check that you're using a valid subnet ID. The subnet must be in the same Azure region as your Azure Load Testing resource.
224
+
### Creating or updating the load test fails with `Subnet is not in the Succeeded state (ALTVNET002)`
224
225
225
-
### The load test is stuck in `Provisioning` state and then goes to `Failed`
226
+
The subnet you're using for the load test isn't in the `Succeeded` state and isn't ready to deploy your load test into it.
226
227
227
-
1. Verify that your subscription is registered with `Microsoft.Batch`.
228
+
1. Verify the state of the subnet.
228
229
229
-
Run the following Azure CLI command to verify the status. The result should be `Registered`.
230
+
Run the following Azure CLI command to verify the state. The result should be `Succeeded`.
230
231
231
232
```azurecli
232
-
az provider show --namespace Microsoft.Batch --query registrationState
233
+
az network vnet subnet show -g MyResourceGroup -n MySubnet --vnet-name MyVNet
233
234
```
234
235
235
-
1. Verify that Microsoft Batch node management and the Azure Load Testing IPs can make inbound connections to the test engine VMs.
236
+
1. Resolve any issues with the subnet. If you've just created the subnet, verify the state again after a few minutes.
236
237
237
-
1. Enable [Network Watcher](/azure/network-watcher/network-watcher-monitoring-overview) for the virtual network region.
238
+
1. Alternately, select another subnet for the load test.
238
239
239
-
```azurecli
240
-
az network watcher configure \
241
-
--resource-group NetworkWatcherRG \
242
-
--locations eastus \
243
-
--enabled
244
-
```
240
+
### Create or updating the load test fails with `Subnet is delegated to other service (ALTVNET003)`
245
241
246
-
1. Create a temporary VM with a Public IP in the subnet you're using for the Azure Load Testing service. You'll only use this VM to diagnose the network connectivity and delete it afterwards. The VM can be of any type.
242
+
The subnet you use for deploying the load test can't be delegated to another Azure service. Either remove the existing delegation, or select another subnet that is not delegated to a service.
247
243
248
-
```azurecli
249
-
az vm create \
250
-
--resource-group myResourceGroup \
251
-
--name myVm \
252
-
--image UbuntuLTS \
253
-
--generate-ssh-keys \
254
-
--subnet mySubnet
255
-
```
244
+
Learn more about [adding or removing a subnet delegation](/azure/virtual-network/manage-subnet-delegation#remove-subnet-delegation-from-an-azure-service).
256
245
257
-
1. Test the inbound connectivity to the temporary VM from the `BatchNodeManagement` service tag.
246
+
### Starting the load test fails with `User doesn't have subnet/join/action permission on the virtual network (ALTVNET004)`
258
247
259
-
1. In the [Azure portal](https://portal.azure.com), go to **Network Watcher**.
260
-
1. On the left pane, select **NSG Diagnostic**.
261
-
1. Enter the details of the VM you created in the previous step.
262
-
1. Select **Service Tag** for the **Source type**, and then select **BatchNodeManagement** for the **Service tag**.
263
-
1. The **Destination IP address** is the IP address of the VM you created in previous step.
264
-
1. For **Destination port**, you have to validate two ports: *29876* and *29877*. Enter one value at a time and move to the next step.
265
-
1. Press **Check** to verify that the network security group isn't blocking traffic.
248
+
To start a load test, you must have sufficient permissions to deploy Azure Load Testing to the virtual network. You require the [Network Contributor](/azure/role-based-access-control/built-in-roles#network-contributor) role, or a parent of this role, on the virtual network.
266
249
267
-
:::image type="content" source="media/how-to-test-private-endpoint/test-network-security-group-connectivity.png" alt-text="Screenshot that shows the NSG Diagnostic page to test network connectivity.":::
250
+
1. See [Check access for a user to Azure resources](/azure/role-based-access-control/check-access) to verify your permissions.
268
251
269
-
If the traffic status is **Denied**, [configure your virtual network](#configure-your-virtual-network) to allow traffic for the **BatchNodeManagement** service tag.
252
+
1. Follow these steps to [assign the Network Contributor role](/azure/role-based-access-control/role-assignments-steps) to your account.
270
253
271
-
1. Test the inbound connectivity to the temporary VM from the `AzureLoadTestingInstanceManagement` service tag.
254
+
### Creating or updating the load test fails with `IPv6 enabled subnet not supported (ALTVNET005)`
272
255
273
-
1. In the [Azure portal](https://portal.azure.com), go to **Network Watcher**.
274
-
1. On the left pane, select **NSG Diagnostic**.
275
-
1. Enter the details of the VM you created in the previous step.
276
-
1. Select **Service Tag** for the **Source type**, and then select **AzureLoadTestingInstanceManagement** for the **Service tag**.
277
-
1. The **Destination IP address** is the IP address of the VM you created in previous step.
278
-
1. For **Destination port**, enter *8080*.
279
-
1. Press **Check** to verify that the network security group isn't blocking traffic.
256
+
Azure Load Testing doesn't support IPv6 enabled subnets. Select another subnet for which IPv6 isn't enabled.
280
257
281
-
If the traffic status is **Denied**, [configure your virtual network](#configure-your-virtual-network) to allow traffic for the **AzureLoadTestingInstanceManagement** service tag.
258
+
### Creating or updating the load test fails with `NSG attached to subnet is not in Succeeded state (ALTVNET006)`
282
259
283
-
1. Delete the temporary VM you created earlier.
260
+
The network security group (NSG) that is attached to the subnet isn't in the `Succeeded` state.
284
261
285
-
### The test executes and results in a 100% error rate
262
+
1. Verify the state of the NSG.
286
263
287
-
Possible cause: there are connectivity issues between the subnet in which you deployed Azure Load Testing and the subnet in which the application endpoint is hosted.
264
+
Run the following Azure CLI command to verify the state. The result should be `Succeeded`.
288
265
289
-
1. You might deploy a temporary VM in the subnet used by Azure Load Testing and then use the [curl](https://curl.se/) tool to test connectivity to the application endpoint. Verify that there are no firewall or NSG rules that are blocking traffic.
266
+
```azurecli
267
+
az network nsg show -g MyResourceGroup -n MyNsg
268
+
```
269
+
270
+
1. Resolve any issues with the NSG. If you've just created the NSG or subnet, verify the state again after a few minutes.
271
+
272
+
1. Alternately, select another NSG.
273
+
274
+
### Creating or updating the load test fails with `Route Table attached to subnet is not in Succeeded state (ALTVNET007)`
275
+
276
+
The route table attached to the subnet isn't in the `Succeeded` state.
277
+
278
+
1. Verify the state of the route table.
279
+
280
+
Run the following Azure CLI command to verify the state. The result should be `Succeeded`.
281
+
282
+
```azurecli
283
+
az network route-table show -g MyResourceGroup -n MyRouteTable
284
+
```
285
+
286
+
1. Resolve any issues with the route table. If you've just created the route table or subnet, verify the state again after a few minutes.
287
+
288
+
1. Alternately, select another route table.
289
+
290
+
### Creating or updating the load test fails with `Inbound not allowed from AzureLoadTestingInstanceManagement service tag (ALTVNET008)`
291
+
292
+
Inbound access from the `AzureLoadTestingInstanceManagement` service tag to the virtual network isn't allowed.
293
+
294
+
Follow these steps to [enable traffic access](/azure/load-testing/how-to-test-private-endpoint#configure-traffic-access) for the `AzureLoadTestingInstanceManagement` service tag.
295
+
296
+
### Creating or updating the load test fails with `Inbound not allowed from BatchNodeManagement service tag (ALTVNET009)`
297
+
298
+
Inbound access from the `BatchNodeManagement` service tag to the virtual network isn't allowed.
299
+
300
+
Follow these steps to [enable inbound access](/azure/load-testing/how-to-test-private-endpoint#configure-traffic-access) for the `BatchNodeManagement` service tag.
301
+
302
+
### Creating or updating the load test fails with `Subnet is in a different subscription than resource (ALTVNET011)`
303
+
304
+
The virtual network isn't in the same subscription and region as your Azure load testing resource. Either move or recreate the Azure virtual network or the Azure load testing resource to the same subscription and region.
305
+
306
+
### Provisioning fails with `An azure policy is restricting engine deployment to your subscription (ALTVNET012)`
307
+
308
+
An Azure policy is restricting load test engine deployment to your subscription. Check your policy restrictions and try again.
309
+
310
+
### Provisioning fails with `Engines could not be deployed due to an error in subnet configuration (ALTVNET013)`
311
+
312
+
The load test engine instances couldn't be deployed due to an error in the subnet configuration. Verify your subnet configuration. If the issue persists, raise a ticket with support along with the run ID of the test.
313
+
314
+
1. Verify the state of the subnet.
315
+
316
+
Run the following Azure CLI command to verify the state. The result should be `Succeeded`.
317
+
318
+
```azurecli
319
+
az network vnet subnet show -g MyResourceGroup -n MySubnet --vnet-name MyVNet
320
+
```
321
+
322
+
1. Resolve any issues with the subnet. If you've just created the subnet, verify the state again after a few minutes.
323
+
324
+
1. If the problem persists, [open an online customer support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest).
325
+
326
+
Provide the load test run ID within the support request.
327
+
328
+
### Starting the load test fails with `Subnet has {0} free IPs, {1} more free IP(s) required to run {2} engine instance load test (ALTVNET014)`
290
329
291
-
1. Verify the [Azure Load Testing results file](./how-to-export-test-results.md) for error response messages:
330
+
The subnet you use for Azure Load Testing must have enough unassigned IP addresses to accommodate the number of load test engines for your test.
292
331
293
-
|Response message | Action |
294
-
|---------|---------|
295
-
| **Non http response code java.net.unknownhostexception** | Possible cause is a DNS resolution issue. If you’re using Azure Private DNS, verify that the DNS is set up correctly for the subnet in which Azure Load Testing instances are injected, and for the application subnet. |
296
-
| **Non http response code SocketTimeout** | Possible cause is when there’s a firewall blocking connections from the subnet in which Azure Load Testing instances are injected to your application subnet. |
332
+
Follow these steps to [update the subnet settings](/azure/virtual-network/virtual-network-manage-subnet#change-subnet-settings) and increase the IP address range.
0 commit comments