question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

backup-now 'item not found'

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

When running az backup protection backup-now for sql in azure vm, the backup item cannot be found, despite the container existing with protectable items listed.

This did work in the past, with almost identical code. Trying this code again, yields the same result.

Command Name az backup protection backup-now

Errors: Azure CLI

(BMSUserErrorDataSourceObjectNotFound) Item not found. Selected item might have been deleted. Please check if item is registered to the vault.
Code: BMSUserErrorDataSourceObjectNotFound
Message: Item not found. Selected item might have been deleted. Please check if item is registered to the vault.

Finding the error in the GUI, it shows this:

Error Code
CloudInternalError

Error Code
Microsoft Azure Backup encountered an internal error.

Recommended action
Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az backup protection backup-now --container-name {} --item-name {} --resource-group {} --vault-name {} --backup-management-type {} --backup-type {}

Expected Behavior

The SQL database in the Azure VM, in the backup container’s protectable item list, is backed up once.

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.38.0

Additional Context

This seemed to stop working around the time we started deploying similar environments in the same subscription, though they each have their own resource group and recovery vault. I don’t think this is related, but it’s all I can think of.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kiweezicommented, Sep 7, 2022

@kiweezi Sorry for the delay. Can you please check this documentation - Back up SQL databases in Azure VM using Azure CLI.

Thanks @SaurabhSharma-MSFT! I believe this guide wasn’t available before I created this issue. I can already spot something different that I’m not doing from the guide. I will have a look at this in the next few days and see if I can replicate what you did to get this working.

0reactions
SaurabhSharma-MSFTcommented, Oct 3, 2022

@kiweezi We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backup Now is not working - Microsoft Community
I just got a new laptop, running Windows 10. I moved over my files from my old laptop using an external usb drive....
Read more >
Showing error when trying to start backup of vms through cli ...
And I'm gettnig this error: Item not found. Please provide a valid item_name. I dont know which item name the error is referring...
Read more >
Error: License not verified. product can't backup now - MSP360
Solution. In order to resolve the issue you need to go through the following steps: Link your copy of the downloaded product (from...
Read more >
Home Support FAQs - NTI Corporation
Answer: Backup Now backs up the NTFS security properties when it backs up your files. When you restored to another computer the accounts...
Read more >
Forcing Pixel 2 XL Backup | Page 2 - XDA Forums
Package appdata with result: Package not found Backup finished with ... BackupTransportService taimen:/ $ [B]bmgr backupnow --all[/B].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found