Trying to create an alert by means of Java SDK or API, getting below error, any solution please?

Gokhan Degerli 20 Reputation points
2024-03-07T18:24:46.6533333+00:00

I am using Java SDK or API, and getting below error while trying to create an alert rule for a container which locates on eastus2. I can not figure out where"API version '2018-01-01' " is coming from, on API call, I am using a different API version. I think something is doing this API call at the background (might be related with container since it's region is eastus2, I exactly do not know). I would be really appreciate if anyone helps, thank in advance.

{

"code": "ResourceNotFound",

"message": "No registered resource provider found for location 'eastus2' and API version '2018-01-01' for type 'storageAccounts/blobServices'. The supported api-versions are '2023-05-01, 2023-04-01, 2023-01-01, 2022-09-01, 2022-05-01, 2021-09-01, 2021-08-01, 2021-06-01, 2021-05-01, 2021-04-01, 2021-02-01, 2021-01-01, 2020-08-01-preview, 2019-06-01, 2019-04-01, 2018-11-01, 2018-07-01, 2018-03-01-preview, 2018-02-01, 2017-10-01, 2017-06-01, 2016-12-01, 2016-05-01'. The supported locations are 'eastus, eastus2, westus, westeurope, eastasia, southeastasia, japaneast, japanwest, northcentralus, southcentralus, centralus, northeurope, brazilsouth, australiaeast, australiasoutheast, southindia, centralindia, westindia, canadaeast, canadacentral, westus2, westcentralus, uksouth, ukwest, koreacentral, koreasouth, francecentral, australiacentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast, westus3, jioindiawest, swedencentral, qatarcentral, polandcentral, italynorth, israelcentral'. Activity ID: c379a2e1-9633-48b7-9b5a-4c9d7199a8dd."

}

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,200 questions
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,471 Reputation points Microsoft Employee Moderator
    2024-03-12T15:50:53.3766667+00:00

    @Gokhan Degerli Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Since the issue is related to SDK for Java, I would recommend to post your question here https://github.com/Azure/azure-sdk-for-java/issues to receive a focused and immediate assistance from the right set of experts.

    This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs or our versioned developer docs..


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.