Azure / Azure/azure-powershell

Typo in property name (Get-AzContainerGroup)

Open
#22,268 5 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Azure PS Team bug Container Instances Contains Breaking Change customer-reported Tracking
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

When examining the output from `Get-AzContainerGroup`, I noticed that several properties that I would expect start with `PreviousState` instead start with: `PreviouState`.

Here is the list:

- PreviouState
- PreviouStateDetailStatus
- PreviouStateExitCode
- PreviouStateFinishTime
- PreviouStateStartTime

These properties can be found using the issue script below.

### Issue script & Debug output

```PowerShell
$aci = Get-AzContainerGroup -ResourceGroupName 'rg name' -Name 'aci name'
$aci.property.Container[0].PSObject.Properties.Name | ?{$_ -like 'Previous*'}
```

### Environment data

```PowerShell
Name Value
---- -----
PSVersion 7.3.5
PSEdition Core
GitCommitId 7.3.5
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

### Module versions

```PowerShell
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.12.4 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 3.2.0 Az.ContainerInstance {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability…}
```

### Error output

```PowerShell
# No errors, just a typo being reported.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.