Skip to content

Get error when creating an image from blob #22

Description

@russellseymour

Using the template in 101-create-image-from-blob-and-vm-from-image as a guide I setup the following:

    {
        "type": "Microsoft.Compute/images",
        "apiVersion": "2016-04-30-preview",
        "name": "ComplianceServer-VM-Image",
        "location": "[variables('location')]",
        "properties": 
        {
            "storageProfile": 
            {
              "osDisk": {
                "osType": "linux",
                "osState": "Generalized",
                "blobUri": "https://x6lx28yt88h0mgqn.blob.core.windows.net/system/Microsoft.Compute/Images/images/compliance-osDisk.0cd1c41f-aea1-43aa-9836-d74130bb8e68.vhd",
                "caching": "ReadWrite",
                "storageAccountType": "Standard_LRS"
              }
            }
        }
    }

However when this is deployed to Azure I immediately get the following error:

{
  "error": {
    "code": "InvalidParameter",
    "target": "disk.blobUri",
    "message": "The blob name in URL https://x6lx28yt88h0mgqn.blob.core.windows.net/system/Microsoft.Compute/Images/images/compliance-osDisk.0cd1c41f-aea1-43aa-9836-d74130bb8e68.vhd contains a slash. This is presently not supported for disks."
  }
}

The URI is the URL to a custom image that has been generalised and was built by Packer.

I do not understand the error that is being given. The SA that is referenced is in the same resource group and location as the Image I am trying to create.

What am I missing? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions