Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az monitor app-insights web-test create - error with more than three --locations #6258

Closed
Gholie opened this issue May 3, 2023 · 3 comments
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@Gholie
Copy link

Gholie commented May 3, 2023

  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Related command

az monitor app-insights web-test create  --location $Location --locations Id='emea-gb-db3-azr' --locations Id='us-tx-sn1-azr' --locations Id='emea-nl-ams-azr' --locations Id='emea-nl-ams-azr' --locations Id='latam-br-gru-edge' `
            --resource-group $ResourceGroup --frequency $Frequency --tags $passedTag --name $name --defined-web-test-name $name --web-test-kind $WebTestKind --kind $Kind --http-verb $HttpVerb --retry-enabled $RetryEnabled `
            --request-url $RequestUrl --enabled $Enabled --ssl-check $SslCheck --ssl-lifetime-check $SslLifeTime --follow-redirects $FollowRedirects --parse-requests $ParseRequests

$location is "westeurope"

Extension name (the extension in question)

monitor app-insights

Description of issue (in as much detail as possible)

Trying to create a web-test with 5 locations. If I input more than three locations i get this error:

ERROR: (BadRequest) 'properties.Locations' duplicate entries found
Code: BadRequest
Message: 'properties.Locations' duplicate entries found
Inner error: {
    "trace": [
        "System.ArgumentException"
    ]
}

@ghost ghost added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels May 3, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented May 3, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost added Auto-Assign Auto assign by bot Monitor labels May 3, 2023
@ghost ghost assigned AllyW May 3, 2023
@ghost ghost added this to the Backlog milestone May 3, 2023
@ghost ghost added the Azure CLI Team The command of the issue is owned by Azure CLI team label May 3, 2023
@AllyW
Copy link
Member

AllyW commented May 6, 2023

Hi @Gholie , the locations' duplicate entries error comes from the cmd's repeated Id='emea-nl-ams-azr' location. Remove this duplicated one and this cmd would work correctly.

az monitor app-insights web-test create --location $Location --locations Id='emea-gb-db3-azr' --locations Id='us-tx-sn1-azr' --locations Id='emea-nl-ams-azr' --locations Id='emea-nl-ams-azr' --locations Id='latam-br-gru-edge' --resource-group $ResourceGroup ...

@Gholie
Copy link
Author

Gholie commented May 8, 2023

You're completely right, a bit embarrassing 😅 Thanks and have a great day

@Gholie Gholie closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants