Comments (9)
@qiaozha @kazrael2119 is this possible with management packages?
from azure-sdk-for-js.
will check
from azure-sdk-for-js.
@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.
@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.
@akumar-99 could you share your expected result?
from azure-sdk-for-js.
@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 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 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.
close it as resolved.
from azure-sdk-for-js.
Related Issues (20)
- Azure Communication Services: Our services aren't available right now We're working to restore all services as soon as possible Please check back soon HOT 1
- Missing pushChannelExpired attribute type definition HOT 1
- List Microsoft.ServiceFabric/managedclusters API call HOT 4
- [engsys] npm 22.5.0 breaking release pipeline
- [engSys] Remove AZURE_POD_IDENTITY_AUTHORITY_HOST workaround HOT 3
- Device provision service in React Native. HOT 8
- [identity] Samples are failing but pipeline continues to pass
- [DataLake] Module not found: Can't resolve '../../storage-blob/src/utils/cache' HOT 3
- [Bulk/Batch API] Add support for suppressing the API response
- [Communication - Phone Numbers] can set an existing trunk failing in nightly
- [Event Hubs] AmqpAnnotatedMessage > round-tripping AMQP encoding/decoding > data (useBatch: true) failing in nightly runs HOT 4
- Buffer from Service-Bus adds special characters if you convert it to a string HOT 7
- Error message shown after finishing a transfer to a phone number HOT 2
- [storage] move back to use ^ version for @azure/identity
- [EngSys] remove the workaround to suppress azure powershell warning HOT 1
- [arm-botservice] fix sanitizer and re-record test HOT 2
- BackgroundBlurEffect requires Content Security Policy 'unsafe-eval' HOT 2
- [cosmos] React Native support HOT 2
- arm-subscriptions: Subscription list and get methods do not return tags of the subscription HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-js.