Open KSchlobohm opened 1 year ago
@zhoxing-ms for awareness
this may be an azd
specific issue
I just created a key vault with az keyvault create --location $Location --name $keyVaultName -g $resourceGroupName
and I see the same issue. When i run the query az resource list -g $resourceGroupName --query "[? name=='$keyVaultName'].name"
This does not appear to be limited to azd
deployments.
[
"kv-ops-randomName",
"kv-ops-randomName"
]
[
"kv-ops-randomName"
]
Used the Azure Portal to confirm there is only one KV with this name. $Location='eastus' for this sample
The following scenario returns 1 row as expected
az resource list -g $resourceGroupName --query "[? name=='$keyVaultName'].name | [0]"
Describe the bug
Running az resource list will return duplicate results for web apps, and Azure SQL resources. Tried filtering results by name, and found that it returned results with the same ID.
Command Name
az resource list
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
azd init
csharp-todo-sql
Actual Behavior
Two web apps are returned
Expected Behavior
Single web app is returned
Environment Summary
Additional Context