azure create vm from image from gallery cannot find publisher

csldmar 6 Reputation points
2022-02-18T17:07:17.75+00:00

Im trying to create a vm from a VM Image definition using the node sdk running on azure functions. However when the computeClient.virtualMachineImages.get is called i get the following error.

RestError: Publisher: Ukantu was not found.at new RestError (C:\home\site\wwwroot\node_modules\@azure\ms-rest-js\dist\msRest.node.js:2480:28)at C:\home\site\wwwroot\node_modules\@azure\ms-rest-js\dist\msRest.node.js:3687:37at processTicksAndRejections (internal/process/task_queues.js:95:5)at async findVMImage (C:\home\site\wwwroot\create-vm\index.js:204:16)at async createResources (C:\home\site\wwwroot\create-vm\index.js:82:27)at async module.exports (C:\home\site\wwwroot\create-vm\index.js:308:12) {code: 'NotFound',statusCode: 404,request: WebResource {streamResponseBody: false,url: 'https://management.azure.com/subscriptions/bc52b7f0-e00b-4da1-bbe1-e901dd7525c2/providers/Microsoft.Compute/locations/eastus/publishers/Ukantu/artifacttypes/vmimage/offers/secsoft/skus/linux/versions/1.0.0?api-version=2021-07-01',method: 'GET',headers: HttpHeaders { _headersMap: [Object] },body: undefined,query: undefined,formData: undefined,withCredentials: false,abortSignal: undefined,timeout: 0,onUploadProgress: undefined,onDownloadProgress: undefined,proxySettings: undefined,keepAlive: undefined,agentSettings: undefined,redirectLimit: undefined,operationSpec: {httpMethod: 'GET',path: 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}',urlParameters: [Array],queryParameters: [Array],headerParameters: [Array],responses: [Object],serializer: [Serializer]}},response: {body: '{\r\n' +'  "error": {\r\n' +'    "code": "NotFound",\r\n' +'    "message": "Publisher: Ukantu was not found."\r\n' +'  }\r\n' +'}',headers: HttpHeaders { _headersMap: [Object] },status: 404},body: { code: 'NotFound', message: 'Publisher: Ukantu was not found.' }}

This is the VM image definitions identifying info and the version im trying to boot from is 1.0.0

"identifier": {
            "publisher": "Ukantu",
            "offer": "secsoft",
            "sku": "linux"
        },

The gallery and function have all the appropriate access permissions. Why cant the image be found? Thanks.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,870 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.