# Beginner having issues multidimensional array ...

**URL:** <https://forums.powershell.org/t/beginner-having-issues-multidimensional-array/13746>\
**Category:** PowerShell Help\
**Created:** [February 1, 2020, 9:44am UTC](https://forums.powershell.org/t/beginner-having-issues-multidimensional-array/13746 "2020-02-01T09:44:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlex](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@tlex](https://forums.powershell.org/u/tlex)\
**Post date:** [February 1, 2020, 9:44am UTC](https://forums.powershell.org/t/beginner-having-issues-multidimensional-array/13746/1 "2020-02-01T09:44:10Z")

</div>

So I have this array of informations I gather from my azure subscription that is converted from json:

```
$Request += (((az consumption usage list --subscription $subscriptionID --start-date $CycleStart --end-date $CycleEnd) 2> $null | ConvertFrom-Json) | select subscriptionname, instanceName, usageStart, usageEnd, pretaxCost, tags )
```

That produce an array that looks ok :

```
$Request 

subscriptionName : Sub1
instanceName : VM1
usageStart : 2020-01-27T00:00:00Z
usageEnd : 2020-01-27T23:59:59Z
pretaxCost : 3.194
tags : @{Classification=ABC, Zone=123, Field=qaz, Org=CAL, Owner=Bob@dev}

subscriptionName : Sub1
instanceName : VM2
usageStart : 2020-01-27T00:00:00Z
usageEnd : 2020-01-27T23:59:59Z
pretaxCost : 2.1
tags : @{Classification=zzz, Zone=123, Field=qaz, Org=NZ, Owner=John@prod}
```

&nbsp;

But as you see, the field “tags” looks merged between @{xxxx}. What I would like to acheive and couldn’t after hours of trial&error (!) is something like that :

```
subscriptionName : Sub1
instanceName : VM1
usageStart : 2020-01-27T00:00:00Z
usageEnd : 2020-01-27T23:59:59Z
pretaxCost : 3.194
Classification : ABC
Zone : 123
Field : qaz
Org : CAL
Owner : Bob@dev

subscriptionName : Sub1
instanceName : VM2
usageStart : 2020-01-27T00:00:00Z
usageEnd : 2020-01-27T23:59:59Z
pretaxCost : 2.1
Classification : ABC
Zone : 222
Field : BIZ
Org : NZ
Owner : John@dev
```

&nbsp;

But… the field nested under “tags” can change over the time so I can’t hardcode something that will look for “Classification”, “Zone”, “Field”, etc…)

Can anyone help me with this one ? 🙂

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:30pm UTC](https://forums.powershell.org/t/beginner-having-issues-multidimensional-array/13746/2 "2024-05-16T20:30:43Z")

</div>

Closed on May 16, 2024, 8:30pm UTC


