Giter Site home page Giter Site logo

[BUG] "No registered resource provider found for location 'eastus2' and API version '2018-01-01' for type 'storageAccounts/blobServices' about azure-sdk-for-java HOT 5 OPEN

gokhandegerli avatar gokhandegerli commented on September 22, 2024
[BUG] "No registered resource provider found for location 'eastus2' and API version '2018-01-01' for type 'storageAccounts/blobServices'

from azure-sdk-for-java.

Comments (5)

gokhandegerli avatar gokhandegerli commented on September 22, 2024

https://learn.microsoft.com/en-us/answers/questions/1610981/trying-to-create-an-alert-by-means-of-java-sdk-or

from azure-sdk-for-java.

joshfree avatar joshfree commented on September 22, 2024

@weidongxu-microsoft could you please follow up

from azure-sdk-for-java.

weidongxu-microsoft avatar weidongxu-microsoft commented on September 22, 2024

@gokhandegerli

The api-version SDK sent to monitor MetricAlert should be 2018-03-01
https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-monitor_2.36.0/sdk/resourcemanager/azure-resourcemanager-monitor/src/main/java/com/azure/resourcemanager/monitor/implementation/MetricAlertsClientImpl.java#L522

The api-version 2018-01-01 appears to be completely in backend implementation when it work on the storage account.

Would it possible for you to enable the logging, and share the URL and JSON request body? (redact anything that could be sensitive)?

We'd like to know whether we should ask backend to track the issue.

from azure-sdk-for-java.

gokhandegerli avatar gokhandegerli commented on September 22, 2024

@weidongxu-microsoft

Please see below the API request details, however I do not know what you mean for enabling the logging.

PUT request URL: "https://management.azure.com/subscriptions/26e4c203-9a71-4ae0-a0e7-65dd5c086761/resourceGroups/c4c-gokhanalertestdev-qq6yviniqy/providers/Microsoft.Insights/metricAlerts/new01?api-version=2018-03-01"

JSON request body:
{
"location": "global",
"properties": {
"severity": 3,
"autoMitigate": true,
"windowSize": "PT1M",
"criteria": {
"allOf": [
{
"metricName": "BlobCount",
"timeAggregation": "AVERAGE",
"criterionType": "StaticThresholdCriterion",
"name": "y0jgd4j4f1-BlobCount01",
"threshold": 10,
"operator": "GreaterThan"
}
],
"odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
"actions": [
{
"actionGroupId": "/subscriptions/26E4C203-9A71-4AE0-A0E7-65DD5C086761/resourceGroups/c4c-gokhanalertestdev-qq6yviniqy/providers/microsoft.insights/actionGroups/newNG01"
}
]
},
"evaluationFrequency": "PT1M",
"description": "BlobCount01",
"scopes": [
"/subscriptions/26e4c203-9a71-4ae0-a0e7-65dd5c086761/resourceGroups/c4c-gokhanalertestdev-qq6yviniqy/providers/Microsoft.Storage/storageAccounts/gokhantestc4c212ftk/blobServices/default/containersy0jgd4j4f1c4c"
],
"enabled": true
}
}

from azure-sdk-for-java.

weidongxu-microsoft avatar weidongxu-microsoft commented on September 22, 2024

@gokhandegerli

Thanks. The URL and payload is what we need. (logging just a way to print these)

There is nothing from SDK that specify 2018-01-01. This would be from backend (probably when it works on the storage account resource in scopes).

If you can open customer support ticket, it should be faster to handle this way, as it need to connect to backend dev to diagnose and fix.

from azure-sdk-for-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.