Skip to content

Commit 6211322

Browse files
committed
Updated per SME comments from Niharika
1 parent 3425904 commit 6211322

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

articles/databox-online/azure-stack-edge-gpu-deploy-virtual-machine-powershell.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: alkohli
77
ms.service: databox
88
ms.subservice: edge
99
ms.topic: how-to
10-
ms.date: 06/19/2023
10+
ms.date: 06/28/2023
1111
ms.author: alkohli
1212
ms.custom: devx-track-azurepowershell
1313
#Customer intent: As an IT admin, I need to understand how to create and manage virtual machines (VMs) on my Azure Stack Edge Pro device. I want to use APIs so that I can efficiently manage my VMs.
@@ -300,15 +300,13 @@ Use the following commands with AzCopy 10:
300300
Use the following commands with AzCopy 10:
301301
302302
```powershell
303-
$StorageAccountKey = (Get-AzureRmStorageAccountKey -ResourceGroupName <ResourceGroupName> -Name <StorageAccountName>)[0].Value
303+
$blobendpoint = (Get-AzureRmEnvironment -Name <environment name>).StorageEndpointSuffix
304+
$StorageAccountContext = New-AzureStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $StorageAccountKey -Endpoint $blobendpoint
304305
305-
$endPoint = (Get-AzureRmStorageAccount -name <StorageAccountName> -ResourceGroupName <ResourceGroupName>).PrimaryEndpoints.Blob
306-
307-
$StorageAccountContext = New-AzureStorageContext -StorageAccountName <StorageAccountName> -StorageAccountKey <StorageAccountKey> -Endpoint <Endpoint>
308-
309-
$StorageAccountSAS = New-AzureStorageAccountSASToken -Service Blob,File,Queue,Table -ResourceType Container,Service,Object -Permission "acdlrw" -Context <StorageAccountContext> -Protocol HttpsOnly
310-
311-
<AzCopy exe path> cp "Full VHD path" "<BlobEndPoint>/<ContainerName><StorageAccountSAS>"
306+
<Create the container if it does not exist>
307+
308+
$containerName = "con1"
309+
$container = New-AzureStorageContainer -Name $containerName -Context $StorageAccountContext -Permission Container
312310
```
313311

314312
Here's some example output:

articles/databox-online/azure-stack-edge-gpu-deploy-vm-specialized-image-powershell.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: databox
88
ms.subservice: edge
99
ms.custom: devx-track-arm-template, devx-track-azurepowershell
1010
ms.topic: how-to
11-
ms.date: 06/07/2023
11+
ms.date: 06/28/2023
1212
ms.author: alkohli
1313
#Customer intent: As an IT admin, I need to understand how to create and upload Azure VM images that I can use with my Azure Stack Edge Pro GPU device so that I can deploy VMs on the device.
1414
---
@@ -90,9 +90,10 @@ Follow these steps to create a managed disk from a VHD that you uploaded to the
9090
1. Create a new managed disk.
9191
9292
```powershell
93-
$StorageAccountId = (Get-AzStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageAccountName).Id
93+
$StorageAccountId = (Get-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageAccountName).Id
94+
9495
$DiskConfig = New-AzureRmDiskConfig -Location DBELocal -StorageAccountId $StorageAccountId -CreateOption Import -SourceUri "Source URL for your VHD"
95-
$disk = New-AzureRMDisk -ResourceGroupName $DiskRG -DiskName $DiskName -Disk $DiskConfig
96+
9697
```
9798
9899
Here is an example output. The location here is set to the location of the local storage account and is always `DBELocal` for all local storage accounts on your Azure Stack Edge Pro GPU device.

0 commit comments

Comments
 (0)