Bug #36163
openFailing to Create Host in Azure using AzureRm Plugin
Description
When trying to create a new host in Azure from Foreman using the AzureRM plugin, I am receiving the following error message:
"Unable to save
Failed to create a compute Azure (Azure Resource Manager) instance testhost.uslrdev.eeft.com: { "message": "Long running operation failed with status Failed", "request": { "base_uri": "https://management.azure.com/", "path_template": "https://management.azure.com/subscriptions/fe22b571-969c-4f62-adf8-e4a267c7da8f/providers/Microsoft.Compute/locations/southcentralus/operations/8b1a99d6-b287-48e2-9483-a79f4bfe8b4a?p=48917853-f0b6-4092-aebf-868c5dc86d61&api-version=2020-12-01", "method": "get", "path_params": null, "skip_encoding_path_params": null, "query_params": null, "skip_encoding_query_params": null, "headers": { "Content-Type": "application/json; charset=utf-8", "Accept": "application/json", "accept-language": "en-US", "x-ms-client-request-id": "ecee9519-c4bc-47f4-af0d-acfe3b738048" }, "body": null, "middlewares": [ [ "MsRest::RetryPolicyMiddleware", { "times": 3, "retry": 0.02 } ], [ "cookie_jar" ] ], "log": null }, "response": { "body": "{\r\n \"startTime\": \"2023-03-03T17:01:36.0880836+00:00\",\r\n \"endTime\": \"2023-03-03T17:01:39.6506133+00:00\",\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"VMMarketplaceInvalidInput\",\r\n \"message\": \"Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request. VM: '/subscriptions/fe22b571-969c-4f62-adf8-e4a267c7da8f/resourceGroups/RG-VM-OPS/providers/Microsoft.Compute/virtualMachines/testhost'.\"\r\n },\r\n \"name\": \"8b1a99d6-b287-48e2-9483-a79f4bfe8b4a\"\r\n}", "headers": { "Cache-Control": "no-cache", "Pragma": "no-cache", "Content-Length": "541", "Content-Type": "application/json; charset=utf-8", "Expires": "-1", "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29999", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "x-ms-request-id": "b8b458d5-dff6-4331-b629-9fc65cf84be4", "Server": "Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0", "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-correlation-request-id": "eff4e0b3-ae8c-46fb-a857-fbe0d80ff616", "x-ms-routing-request-id": "CENTRALUS:20230303T170207Z:eff4e0b3-ae8c-46fb-a857-fbe0d80ff616", "X-Content-Type-Options": "nosniff", "Date": "Fri, 03 Mar 2023 17:02:07 GMT" }, "status": 200 } }"
It's failing to create a VM from a marketplace image because it requires Plan information. However, there is nowhere for me to specify Plan information.
I've seen some reference to this issue being resolved in earlier tickets, but I am still having this problem.
I am using version 2.2.7 of the plugin.
Please let me know me know if there's any other info I can provide to help solve this.
Thank you!!
Updated by Gary Walker over 1 year ago
- Assignee set to Aditi Puntambekar
Hi Aditi,
Have you seen any other users reporting this issue?