Skip to content

Follow-up: Is it possible to create a VM with OS disk type different than Premium SSD? #20044

Closed

Description

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

Compute - VMMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions