简体   繁体   English

尝试通过 cli 命令启动虚拟机备份时显示错误

[英]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.

相关问题 运行azure-cli命令时出错 - Error when running azure-cli commands 使用Azure CLI在不同资源组中启动VM - Start VMs in different resource groups using azure CLI 尝试使用 CLI 创建 web 应用时出错 - Error when trying to create a webapp using CLI 尝试让两个 Azure VM 在不同端口上通信时出现“无法连接到远程主机:连接被拒绝”错误 - "Unable to connect to remote host: Connection refused" error when trying to get two Azure VMs to communicate on different ports 尝试重新注册 Azure 备份服务器时出现错误 34513 - Error 34513 when trying to re register Azure Backup Server 通过输入文件启动/关闭Azure中的特定VM - Start / Shutdown specific VMs in Azure through an input file 尝试使用 Azure CLI 创建 web 应用程序时出现限制错误 - Throttling error when trying to create web app using Azure CLI 尝试通过JSON模板自定义扩展将powershell命令注入到Azure RM VM中 - Trying to inject powershell commands in to Azure RM VMs via JSON template Custom Extension AZ CLI 命令在 GitLab 中触发管道时失败,读取一行时出现错误 EOF - AZ CLI commands fail when trigger the pipeline in GitLab with error EOF when reading a line 需要启动虚拟机排除特定虚拟机 - Need to start VMs exclude specific VMs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM