# Write-CWMetricDashboard is not taking the -DashboardBody json

**URL:** <https://forums.powershell.org/t/write-cwmetricdashboard-is-not-taking-the-dashboardbody-json/23493>\
**Category:** PowerShell Help\
**Created:** [January 26, 2024, 7:22pm UTC](https://forums.powershell.org/t/write-cwmetricdashboard-is-not-taking-the-dashboardbody-json/23493 "2024-01-26T19:22:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Issac\_Mathew](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@Issac\_Mathew](https://forums.powershell.org/u/Issac_Mathew)\
**Post date:** [January 26, 2024, 7:22pm UTC](https://forums.powershell.org/t/write-cwmetricdashboard-is-not-taking-the-dashboardbody-json/23493/1 "2024-01-26T19:22:13Z")

</div>

Write-CWMetricDashboard -DashboardName testinga1 -DashboardBody $dash -Region us-east-1 -debug

executing this command not taking the $dash variable

---

<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:** [January 26, 2024, 7:45pm UTC](https://forums.powershell.org/t/write-cwmetricdashboard-is-not-taking-the-dashboardbody-json/23493/2 "2024-01-26T19:45:53Z")

</div>

Hey Isaac!

Could you please format your code and provide some more salient details? What do you mean by not taking the $dash variable? Could you give us the full code that shows us what the $dash variable is? A quick google seems to indicate this might be in AWS, but could you confirm? Do you get errors? if so could you share? The more information you can provide the better.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [February 25, 2024, 7:46pm UTC](https://forums.powershell.org/t/write-cwmetricdashboard-is-not-taking-the-dashboardbody-json/23493/3 "2024-02-25T19:46:37Z")

</div>

Closed on February 25, 2024, 7:46pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
