Closed
Description
openedon Aug 2, 2021
My previous issue #19786 was closed an I was unable to reopen it so I am opening here a new one.
Could you help me to specify the platform image parameters to use if I want to create a disk from the platform image (Ubuntu 18.04)? For now I was passing:
'storage_profile': {
'image_reference': {
"offer": "UbuntuServer",
"publisher": "Canonical",
"sku": "18.04-LTS",
"urn": "Canonical:UbuntuServer:18.04-LTS:latest",
"urnAlias": "UbuntuLTS",
"version": "latest"
}
},
But since 'image_reference
is now osdisk
I have tried passing this information in the 'creation_data'
:
'creation_data': {
'create_option': 'from_image',
"id": "/Subscriptions/{}/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/latest".format(self.subscription_id),
}
}
following this reference: https://docs.microsoft.com/en-us/rest/api/compute/disks/create-or-update#create-a-managed-disk-from-a-platform-image.
But I am getting:
Operation failed with status: 'Not Found'. Details: No HTTP resource was found that matches the request URI 'https://management.azure.com/subscriptions/<subscr_id>/resourceGroups/subscriptions/<subscr_id>/resourceGroups/doodad5effac/providers/Microsoft.Compute/disks/doodad-vm-disk?api-version=2020-05-01'.
I will be grateful for any hints!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Labels
This issue is related to a management-plane library.Workflow: This issue is responsible by Azure service team.Issues that are reported by GitHub users external to the Azure organization.Workflow: This issue needs attention from Azure service team or SDK teamThe issue doesn't require a change to the product in order to be resolved. Most issues start as that