We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad117f commit 51cdbeaCopy full SHA for 51cdbea
src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJobDetails.cs
@@ -50,6 +50,21 @@ public override void ExecuteCmdlet()
50
51
ExecutionBlock(() =>
52
{
53
+ if (JobID != null)
54
+ {
55
+ if ((JobID is PSObject) && (((PSObject)JobID).ImmediateBaseObject is string))
56
57
+ JobID = ((PSObject)JobID).ImmediateBaseObject.ToString();
58
+ }
59
+ else if (JobID is string)
60
61
+ // nothing to do
62
63
+ else
64
65
+ throw new Exception("JobID should be of the type string. Please input a string.");
66
67
68
if (Job != null)
69
70
JobID = Job.InstanceId;
0 commit comments