-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels