Skip to content

Commit

Permalink
Merge pull request #28918 from Azure/FromPublicRepo
Browse files Browse the repository at this point in the history
From public repo
  • Loading branch information
Taojunshen committed Aug 11, 2016
2 parents d0d165d + e905937 commit 179fdae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions articles/backup/backup-azure-vms-automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,9 @@ After you have restored the disks, use these steps to create and configure the v
2. Set the Azure storage context and restore the JSON configuration file.

```
Set -AzureRmCurrentStorageAccount -Name $storageaccountname -ResourceGroupName testvault
PS C:\> Set-AzureRmCurrentStorageAccount -Name $storageaccountname -ResourceGroupName testvault
PS C:\> $destination_path = "C:\vmconfig.json"
Get-AzureStorageBlobContent -Container $containerName -Blob $blobName -Destination
PS C:\> $destination_path -Context $storageContext
PS C:\> Get-AzureStorageBlobContent -Container $containerName -Blob $blobName -Destination $destination_path
PS C:\> $obj = ((Get-Content -Path $destination_path -Encoding Unicode)).TrimEnd([char]0x00) | ConvertFrom-Json
```

Expand Down

0 comments on commit 179fdae

Please sign in to comment.