[英]Showing error when trying to start backup of vms through cli commands
I wrote the command:我写了命令:
az backup protection backup-now --resource-group Rsrgrp \
--vault-name CLIbkvault --container-name CLIcont \
--item-name MyItem --retain-until 29-02-2020 \
--backup-management-type AzureStorage
And I'm gettnig this error:我得到了这个错误:
Item not found.未找到项目。 Please provide a valid item_name.请提供有效的 item_name。
I dont know which item name the error is referring to.我不知道错误指的是哪个项目名称。
My guess this is the first time you try to backup the resource, is that so?我猜这是您第一次尝试备份资源,是吗?
If so, you will need to first add the resource as protected to the backup vault, then the item name will be the name of the resource you are backing up.如果是这样,您需要先将受保护的资源添加到备份保管库,然后项目名称将是您要备份的资源的名称。
Azure VM Azure 虚拟机
az backup protection enable-for-vm --policy-name
--vm
[--disk-list-setting {exclude, include}]
[--diskslist]
[--ids]
[--resource-group]
[--subscription]
[--vault-name]
Azure File Share Azure 文件共享
az backup protection enable-for-azurefileshare --azure-file-share
--policy-name
--storage-account
[--ids]
[--resource-group]
[--subscription]
[--vault-name]
Azure Workload Azure 工作负载
az backup protection enable-for-azurewl --policy-name
--protectable-item-name
--protectable-item-type {HANAInstance, SAPHanaDatabase, SAPHanaSystem, SQLAG, SQLDatabase, SQLInstance}
--server-name
--workload-type {AzureFileShare, MSSQL, SAPHANA, SAPHanaDatabase, SQLDataBase, VM}
[--ids]
[--resource-group]
[--subscription]
[--vault-name]
https://docs.microsoft.com/en-us/cli/azure/backup/protectionhttps://docs.microsoft.com/en-us/cli/azure/backup/protection
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.