Share via

how to read JSON based TMSL script using power shell

Ayodhya, Mounica 1 Reputation point
2021-06-09T05:49:47.417+00:00

how to read JSON based TMSL script using power shell, i want to read the content of JSON file with TSML script for automation of 1400 compatible SSAS cubes deployment.

Below is the one i am currently using for reading xmla for 1103 compatible ssas cubes:

$xml = [xml](Get-Content $SSASDatabaseXMLA

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-06-09T07:05:31.557+00:00

    Hi,

    Please try the ConvertFrom-Json cmdlet.

    Get-Content -Path $file | ConvertFrom-Json  
    

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/convertfrom-json

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.