Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Hands-on lab quickstart > Step 5: Create the hands-on lab VM script error #57

Open
cezapata opened this issue Apr 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@cezapata
Copy link

Describe the bug
Running the following script results in a couple of errors: ./quickstart/scripts/labvm/Deploy-LabVM.ps1:

[DevSquad In a Day] Initializing the lab VM disk

ResourceGroupName : rg-labvm
Location          : eastus
ProvisioningState : Succeeded
Tags              : 
ResourceId        : /subscriptions/<subscriptionID>/resourceGroups/rg-labvm


ResourceGroupName            : rg-labvm
ManagedBy                    : 
ManagedByExtended            : {}
Sku                          : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones                        : 
TimeCreated                  : 4/15/2022 2:20:01 AM
OsType                       : Windows
HyperVGeneration             : 
CreationData                 : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB                   : 
DiskSizeBytes                : 
UniqueId                     : 9322e375-23bd-4811-b579-0053a7c33ced
EncryptionSettingsCollection : 
ProvisioningState            : Succeeded
DiskIOPSReadWrite            : 500
DiskMBpsReadWrite            : 100
DiskIOPSReadOnly             : 
DiskMBpsReadOnly             : 
DiskState                    : ReadyToUpload
Encryption                   : Microsoft.Azure.Management.Compute.Models.Encryption
MaxShares                    : 
ShareInfo                    : {}
Id                           : /subscriptions/<subscriptionId>/resourceGroups/rg-labvm/providers/Microsoft.Compute/disks/disklabvmeastus
Name                         : disklabvmeastus
Type                         : Microsoft.Compute/disks
Location                     : eastus
ExtendedLocation             : 
Tags                         : {}
NetworkAccessPolicy          : AllowAll
DiskAccessId                 : 
Tier                         : P10
BurstingEnabled              : 
PurchasePlan                 : 
SupportsHibernation          : 
SecurityProfile              : 
PublicNetworkAccess          : Enabled
SupportedCapabilities        : 

[DevSquad In a Day] Copying the lab VM snapshot to your subscription
INFO: Scanning...
INFO: azcopy: A newer version 10.14.1 is available to download


failed to perform copy command due to error: no SAS token or OAuth token is present and the resource is not public
Revoke-AzDiskAccess: /home/<path>/<project>/quickstart/scripts/labvm/Deploy-LabVM.ps1:33
Line |
  33 |  Revoke-AzDiskAccess -ResourceGroupName $resourceGroupName -DiskName $ …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The specified cookie value in VHD footer indicates that disk 'abcd' with blob https://md-impexp-v0b5nhzmddqq.z21.blob.storage.azure.net:8443/z321kgskk1ml/abcd is not a supported VHD. Disk is expected to have cookie value 'conectix'. ErrorCode:
     | InvalidVhd ErrorMessage: The specified cookie value in VHD footer indicates that disk 'abcd' with blob https://md-impexp-v0b5nhzmddqq.z21.blob.storage.azure.net:8443/z321kgskk1ml/abcd is not a supported VHD. Disk is expected to have cookie value
     | 'conectix'. ErrorTarget:  StatusCode: 400 ReasonPhrase: Bad Request OperationID : 854c65f5-2a08-4ebb-8e9a-e85f30d60ffa

[DevSquad In a Day] Creating the lab VM associated resources
WARNING: Upcoming breaking changes in the cmdlet 'New-AzVirtualNetworkSubnetConfig' :
Update Property Name
Cmdlet invocation changes :
    Old Way : -ResourceId
    New Way : -NatGatewayId
Update Property Name
Cmdlet invocation changes :
    Old Way : -InputObject
    New Way : -NatGateway
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
WARNING: Upcoming breaking changes in the cmdlet 'New-AzPublicIpAddress' :
Default behaviour of Zone will be changed
Cmdlet invocation changes :
    Old Way : Sku = Standard means the Standard Public IP is zone-redundant.
    New Way : Sku = Standard and Zone = {} means the Standard Public IP has no zones. If you want to create a zone-redundant Public IP address, please specify all the zones in the region. For example, Zone = ['1', '2', '3'].
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.
[DevSquad In a Day] Creating the lab VM
New-AzVM: /home/<path>/<project>/quickstart/scripts/labvm/Deploy-LabVM.ps1:86
Line |
  86 |  New-AzVM -ResourceGroupName $resourceGroupName -Location $location -V …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Disk 'disklabvmeastus' is created for Upload. Call BeginGetAccess to upload data and EndGetAccess before copying or attaching the disk. ErrorCode: OperationNotAllowed ErrorMessage: Disk 'disklabvmeastus' is created for Upload. Call BeginGetAccess to
     | upload data and EndGetAccess before copying or attaching the disk. ErrorTarget: /subscriptions/<subscriptionID>/resourceGroups/rg-labvm/providers/Microsoft.Compute/disks/disklabvmeastus StatusCode: 409 ReasonPhrase: Conflict
     | OperationID : 9228f6dc-0fd9-4873-9a9c-f9f59e215869

[DevSquad In a Day] Done!

To Reproduce
Steps to reproduce the behavior:

  1. Follow the Hands-on tutorial setup instructions until step 5 (create the hands-on lab VM)
  2. Execute the script to create a VM.

Expected behavior
The script should succeed without any errors, and the lab vm should be created under the resource group.

Screenshots
Screenshot displaying the error codes generated from running the script

Screenshot showing the resource group created for the VM without a VM on it

Desktop (please complete the following information):

  • OS: MacOS Monterey
  • Browser Edge
  • Version 100.0.1185.39 (Official build) (x86_64)

Additional context
N/A

@cezapata cezapata added the bug Something isn't working label Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant