Azure / Azure/azure-cli

az network lb frontend-ip create does not work in parallel

Open
#13,736 6 comments 0 reactions 1 assignee Claimed by @haroldrandom View on GitHub
act-quality-productivity-squad customer-reported feature-request Network performance
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**
If the command is executed in parallel, only one configuration is created
Observing azure portal i can see first created then replaced by another.

**To Reproduce**
```
$ipsInJson | % -Parallel {
$ipId = $_.publicIp.id
$name = 'fe-' + ($ipId -split '/')[-1]
az network lb frontend-ip create --subscription $using:subscription -g $using:rg --lb-name $using:lbName -n $name --public-ip-address $ipId
}
```
It creates one configuration for list of two ips (did not check more).

**Expected behavior**
Many frontend configurations created.

**Environment summary**
az version:
{
"azure-cli": "2.1.0",
"azure-cli-command-modules-nspkg": "2.0.3",
"azure-cli-core": "2.1.0",
"azure-cli-nspkg": "3.0.4",
"azure-cli-telemetry": "1.0.4",
"extensions": {}
}

powershell:
Name Value
---- -----
PSVersion 7.0.1
PSEdition Core
GitCommitId 7.0.1
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.