https://pulumi.com logo
#azure
Title
# azure
w

wooden-army-44126

03/09/2024, 3:29 PM
Hi error: Code="LocationRequired" Message="The location property is required for this definition."
p

purple-train-14007

03/09/2024, 4:32 PM
This is because the VM you are deploying needs the Location Prop defined when instantiating the resource. So WestUS, EastUS etc
Copy code
location: "westus",
    protectedSettings: {},
    publisher: "extPublisher",
    resourceGroupName: "rgcompute",
    settings: {},
    suppressFailures: true,
    tags: {
        key9183: "aa",
    },
    type: "extType",
    typeHandlerVersion: "1.2",
    vmExtensionName: "aaaaaaaaaaaaa",
    vmName: "aaaaaaaaaaaaaaaaaaaaaaaa",
})
Some resources cant infer location based on RG location or stack location. You have to tell it, this a requirement of the API they are calling Azure side hence the prop