{"action":"opened","issue":{"url":"https://api.github.com/repos/pulumi/pulumi-azure/issues/150","repository_url":"https://api.github.com/repos/pulumi/pulumi-azure","labels_url":"https://api.github.com/repos/pulumi/pulumi-azure/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/pulumi/pulumi-azure/issues/150/comments","events_url":"https://api.github.com/repos/pulumi/pulumi-azure/issues/150/events","html_url":"https://github.com/pulumi/pulumi-azure/issues/150","id":384022209,"node_id":"MDU6SXNzdWUzODQwMjIyMDk=","number":150,"title":"Adding a `customData` to `VirtualMachine` doesn't do anything","user":{"login":"lukehoban","id":223467,"node_id":"MDQ6VXNlcjIyMzQ2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/223467?v=4","gravatar_id":"","url":"https://api.github.com/users/lukehoban","html_url":"https://github.com/lukehoban","followers_url":"https://api.github.com/users/lukehoban/followers","following_url":"https://api.github.com/users/lukehoban/following{/other_user}","gists_url":"https://api.github.com/users/lukehoban/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehoban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehoban/subscriptions","organizations_url":"https://api.github.com/users/lukehoban/orgs","repos_url":"https://api.github.com/users/lukehoban/repos","events_url":"https://api.github.com/users/lukehoban/events{/privacy}","received_events_url":"https://api.github.com/users/lukehoban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-24T21:08:46Z","updated_at":"2018-11-24T21:08:46Z","closed_at":null,"author_association":"MEMBER","body":"I have a VirtualMachine deployed - based on \r\nhttps://github.com/pulumi/examples/tree/master/azure-js-webserver. \r\n\r\n```js\r\nlet vm = new azure.compute.VirtualMachine(\"server-vm\", {\r\n    resourceGroupName: resourceGroup.name,\r\n    location: resourceGroup.location,\r\n    networkInterfaceIds: [networkInterface.id],\r\n    vmSize: \"Standard_A0\",\r\n    deleteDataDisksOnTermination: true,\r\n    deleteOsDiskOnTermination: true,\r\n    osProfile: {\r\n        computerName: \"hostname\",\r\n        adminUsername: \"pulumi\",\r\n        adminPassword: \"aA1$aA1$aA1$aA1$\",\r\n        // customData: \"something\",\r\n    },\r\n    osProfileLinuxConfig: {\r\n        disablePasswordAuthentication: false,\r\n    },\r\n    storageOsDisk: {\r\n        createOption: \"FromImage\",\r\n        name: \"myosdisk1\",\r\n    },\r\n    storageImageReference: {\r\n        publisher: \"canonical\",\r\n        offer: \"UbuntuServer\",\r\n        sku: \"16.04-LTS\",\r\n        version: \"latest\",\r\n    },\r\n});\r\n```\r\n\r\nIf I uncomment the `customData: \"something\",` piece, and re-run update, `pulumi` shows me no diff at all!  \r\n\r\n```\r\n$ pulumi up\r\nPreviewing update (azurewebserver-dev):\r\n\r\n     Type                 Name                               Plan\r\n     pulumi:pulumi:Stack  azurewebserver-azurewebserver-dev\r\n\r\nResources:\r\n    7 unchanged\r\n\r\nDo you want to perform this update? details\r\n  pulumi:pulumi:Stack: (same)\r\n    [urn=urn:pulumi:azurewebserver-dev::azurewebserver::pulumi:pulumi:Stack::azurewebserver-azurewebserver-dev]\r\n\r\nDo you want to perform this update? no\r\n```\r\n\r\nIn contrast, destroying and recreating with this value of `customData` works as expected."}}
{"actor":{"display_login":"lukehoban"}}