@@ -18,24 +18,29 @@ export default ({
1818 id,
1919 name,
2020 type,
21+ vmId,
2122 diagnosticsProfile : {
2223 bootDiagnostics : { enabled : bootDiagnostics = false } = { } ,
2324 } = { } ,
24- osProfile : { adminUsername, adminPassword, secrets, ...restOsProfile } = { } ,
25+ osProfile : {
26+ computerName,
27+ windowsConfiguration : {
28+ provisionVMAgent : wProvisionVMAgent ,
29+ enableAutomaticUpdates,
30+ timeZone,
31+ } = { } ,
32+ linuxConfiguration : {
33+ disablePasswordAuthentication,
34+ provisionVMAgent : lProvisionVMAgent ,
35+ } = { } ,
36+ allowExtensionOperations,
37+ requireGuestProvisionSignal,
38+ } = { } ,
2539 storageProfile : { imageReference } = { } ,
2640 licenseType,
2741 resourceGroupId,
2842 Tags,
2943 } = service
30- const {
31- linuxConfiguration : {
32- patchSettings : lps ,
33- ssh : lssh ,
34- ...linuxConfiguration
35- } = { } ,
36- windowsConfiguration : { patchSettings : wps , ...windowsConfiguration } = { } ,
37- ...osProfile
38- } = restOsProfile
3944 const storageImageReference : AzureVirtualMachineStorageImageReference =
4045 imageReference || { }
4146 return {
@@ -44,7 +49,21 @@ export default ({
4449 name,
4550 type,
4651 region,
47- osProfile : { linuxConfiguration, windowsConfiguration, ...osProfile } ,
52+ vmId,
53+ osProfile : {
54+ computerName,
55+ windowsConfiguration : {
56+ provisionVMAgent : wProvisionVMAgent ,
57+ enableAutomaticUpdates,
58+ timeZone,
59+ } ,
60+ linuxConfiguration : {
61+ disablePasswordAuthentication,
62+ provisionVMAgent : lProvisionVMAgent ,
63+ } ,
64+ allowExtensionOperations,
65+ requireGuestProvisionSignal,
66+ } ,
4867 storageImageReference,
4968 bootDiagnostics,
5069 licenseType,
0 commit comments