Giter Site home page Giter Site logo

Comments (4)

github-actions avatar github-actions commented on September 23, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

from azure-sdk-for-java.

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

I cannot reproduce in local with 2.21.0 (azure-core-http-okhttp 1.11.21) -- but that's on my test subscription
image

You can enable logging via https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/resourcemanager#enabling-logging
Check what service responses.

Do you (or the service principal) have enough permission/RBAC on that subscription?

Also try 2.38.0 (and latest azure-core / azure-core-management). It should use later api-version on network backend.

from azure-sdk-for-java.

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

You may also directly send a REST API call (curl or postman, or even Azure CLI with --debug) to

https://management.azure.com/subscriptions/3e17d1cf-4884-464a-b070-cf240f785b10/providers/Microsoft.Network/virtualNetworks?api-version=2022-05-01

with an auth token via OAuth2.

We want to check whether this is SDK problem (that service returns the result, but SDK didn't give it back to you), or backend problem (service didn't return any virtual network in response).

from azure-sdk-for-java.

ArchismanRakshit avatar ArchismanRakshit commented on September 23, 2024

@weidongxu-microsoft Thanks for the suggestion on the REST API call. Since this is a customer subscription, we will need to work with them to generate credentials for us which we can use to make a direct REST API call. I will update this thread with the findings once we are able to test this out.

We checked and confirmed that our Service principal has enough permission on the subscription to list the virtual networks

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.