Open emichellecarter opened 1 year ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pvrk, @adityabalaji-msft.
Author: | mcarter106 |
---|---|
Assignees: | - |
Labels: | `Recovery Services Backup`, `Service Attention`, `bug`, `customer-reported` |
Milestone: | - |
@mcarter106 Are you still experiencing this issue ?
@mcarter106 - this command isn't intended to use with AzureVM workload. Please directly use Enable-AzRecoveryServicesBackupProtection to configure backup - https://learn.microsoft.com/en-us/powershell/module/az.recoveryservices/enable-azrecoveryservicesbackupprotection?view=azps-11.2.0
Description
When using the Register-AzRecoveryServicesBackupContainer cmdlet, to register an AzureVM container the cmdlet is limited to a BackupManagementType of AzureWorkloads. The documentation states that the available workload types are AzureVM, AzureSQLDatabase, AzureFiles, MSSQL however when the cmdlet runs the error Register-AzRecoveryServicesBackupContainer: BackupManagementType is not expected for WorkloadType: AzureVM is produced. If the WorkloadType parameter is not supplied the cmdlet asks for input. If the WorkloadType is set to AzureVM as is accepted by Get-AzRecoveryServicesBackupItem, the response is as follows "The argument "AzureVM" does not belong to the set "AzureWorkload" specified by the ValidateSet attribute." Was this cmdlet intended for use with Azure VMs?
Steps to reproduce the issue. Run the following cmdlet:
Issue script & Debug output
Environment data
Module versions
Error output