GithubHelp home page GithubHelp logo

Comments (9)

jeremymeng avatar jeremymeng commented on September 28, 2024

@qiaozha @kazrael2119 is this possible with management packages?

from azure-sdk-for-js.

kazrael2119 avatar kazrael2119 commented on September 28, 2024

will check

from azure-sdk-for-js.

kazrael2119 avatar kazrael2119 commented on September 28, 2024

@akumar-99 ,could you try to use https://www.npmjs.com/package/@azure/arm-recoveryservices?
here is the sample to use vault.list() https://github.com/kazrael2119/azure-sdk-for-js/blob/a6a9faa7d99689beadd355425bee049fb8f71916/sdk/recoveryservices/arm-recoveryservices/samples/v6/typescript/src/vaultsListByResourceGroupSample.ts

from azure-sdk-for-js.

akumar-99 avatar akumar-99 commented on September 28, 2024

@kazrael2119, the API call reference you shared will still return the output as vaults in a resource group. I tried it via REST API—https://learn.microsoft.com/en-us/rest/api/recoveryservices/vaults/list-by-resource-group?view=rest-recoveryservices-2024-04-01 and the output cannot be related to a specific resource.

The CLI command I shared is more specific to a resource like the vault associated to the VM.

from azure-sdk-for-js.

kazrael2119 avatar kazrael2119 commented on September 28, 2024

@akumar-99 could you share your expected result?

from azure-sdk-for-js.

kazrael2119 avatar kazrael2119 commented on September 28, 2024

@akumar-99 https://www.npmjs.com/package/@azure/arm-recoveryservicesbackup/v/13.1.0
I think this package is you want
install this package and call backupStatus.get()
here is the sample: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/samples-dev/backupStatusGetSample.ts

from azure-sdk-for-js.

akumar-99 avatar akumar-99 commented on September 28, 2024

@akumar-99 could you share your expected result?

ashish@Pro assessments % az backup protection check-vm --vm /subscriptions/0451414c/resourceGroups/ASHISH-TEST-PG/providers/Microsoft.Compute/virtualMachines/passedhtyhuyyutyy567 --output json
"/subscriptions/0451414c/resourceGroups/ashish-test-pg/providers/Microsoft.RecoveryServices/vaults/defaultVault213"

from azure-sdk-for-js.

akumar-99 avatar akumar-99 commented on September 28, 2024

@akumar-99 https://www.npmjs.com/package/@azure/arm-recoveryservicesbackup/v/13.1.0 I think this package is you want install this package and call backupStatus.get() here is the sample: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/samples-dev/backupStatusGetSample.ts

I checked this out, and the output of this will suffice my requirements. Thank You @kazrael2119

from azure-sdk-for-js.

qiaozha avatar qiaozha commented on September 28, 2024

close it as resolved.

from azure-sdk-for-js.

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.