Hi,
I am trying to extract the job detail using powershell i am following below steps and backup type is Files
and folders
1.
Get-AzureRmRecoveryServicesVault -Name "vault name"|Set-AzureRmRecoveryServicesVaultContext
2.
$container=Get-AzureRmRecoveryServicesBackupContainer -ContainerType Windows -FriendlyName "vault name" -BackupManagementType MARS
Name ContainerType BackupManagementType
---- ------------- --------------------
xxxxxxxxxx.xx.xxxxx.intra Windows MARS
xxxxxxxxxx.xxx.xxxxx.intra Windows MARS
xxxxxxxxxx.xx.xxxxx.intra Windows MARS
xxxxxxxxxx.xx.xxxxx.intra Windows MARS
Get-AzureRmRecoveryServicesBackupItem -Container $container -WorkloadType
i am not sure what parameter i have to pass in workload type i have tried AzureVM and AzureSQLDatabase for this i am getting the below error
Get-AzureRmRecoveryServicesBackupItem : Cannot bind parameter 'Container'. Cannot convert the "Windows" value of type "System.String" to type "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase".
At line:1 char:53
+ $c=Get-AzureRmRecoveryServicesBackupItem -Container Windows -Workload ...
+ ~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AzureRmRecoveryServicesBackupItem], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.GetAzureRmRecoveryServicesBackupItem
Please help.
Prashant Dev Pandey LIVE IN YOUR OWN WAY Please remember to mark the replies as answers if they help