tlindsay42 / ArmorPowerShell

Community PowerShell Module for Armor
https://tlindsay42.github.io/ArmorPowerShell/
Apache License 2.0
5 stars 6 forks source link

Get-ArmorCompleteWorkloadTier -WorkloadID $WorkloadID -ID $ID does not return an object if it exists, but contains no VMs #122

Open tlindsay42 opened 6 years ago

tlindsay42 commented 6 years ago

Problem Statement

Get-ArmorCompleteWorkloadTier -WorkloadID $WorkloadID -ID $ID does not return an object if it exists, but contains no VMs.

Steps to Reproduce

  1. Get-ArmorCompleteWorkloadTier -WorkloadID $WorkloadID -ID $ID

Expected Behavior

Get-ArmorCompleteWorkloadTier -WorkloadID $WorkloadID -ID $ID should return an object if it exists, even if it contains no VMs.

Environment

Armor PowerShell Module Version

PS C:\> ( Get-Module -Name Armor ).Version

Major  Minor  Build  Revision
-----  -----  -----  --------
1      0      265    -1

PowerShell Version

PS C:\> Get-PSVersion

Major  Minor  Patch  PreReleas BuildLabel
                     eLabel
-----  -----  -----  --------- ----------
6      0      2

Operating System

Confirmed on Windows & Ubuntu

Additional Context

Could implement a workaround of checking the tiers in the workload object, but I don't really want to.