I am trying to use PowerShell to extract value from JSON object, I have the following JSON:
{ \"$schema\": \"http://schema.management.azure.com/schemas/2
Use the Get-Content cmdlet to read the file, convert it using the ConvertFrom-Json cmdlet and just access the property you want:
Get-Content
ConvertFrom-Json
$yourVariable = (Get-Content 'yourJsonFilePath.json' | ConvertFrom-Json).parameters.clusterStorageAccountName.value