Merge pull request #1 from microsoft/release/v001
refactor: vhd public access
This commit is contained in:
Коммит
a00c809687
|
@ -143,8 +143,6 @@ Execute all these steps below to setup your evironment before running the Hands-
|
|||
./quickstart/scripts/labvm/Deploy-LabVM.ps1
|
||||
```
|
||||
|
||||
- When prompted for the `sourceSas` parameter, provide the following value: `https://stlabvm.blob.core.windows.net/vhd/labvm-001.vhd?sp=r&st=2021-09-21T19:04:44Z&se=2021-09-25T03:04:44Z&spr=https&sv=2020-08-04&sr=b&sig=qJATNoRXYE34IBybuAMTaMzWyPTr8mZSp3EiYFoRnLk%3D`
|
||||
|
||||
|
||||
2. Access the VM resource and assign a new password to the user `labuser`.
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
param (
|
||||
[parameter(mandatory=$true)]
|
||||
[string]$sourceSas,
|
||||
[string]$sourceVhd = 'https://stlabvm.blob.core.windows.net/vhd/labvm-001.vhd',
|
||||
|
||||
# Size of the VHD snapshot in bytes
|
||||
[long]$vhdSizeBytes = 136367309312,
|
||||
|
@ -29,7 +28,7 @@ $disk = Get-AzDisk -ResourceGroupName $resourceGroupName -DiskName $diskName
|
|||
|
||||
Write-Host "[DevSquad In a Day] Copying the lab VM snapshot to your subscription"
|
||||
|
||||
azcopy copy $sourceSas $diskSas.AccessSAS --blob-type PageBlob
|
||||
azcopy copy $sourceVhd $diskSas.AccessSAS --blob-type PageBlob
|
||||
|
||||
Revoke-AzDiskAccess -ResourceGroupName $resourceGroupName -DiskName $diskName
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче