sparse-intern-71089
08/31/2021, 7:03 PMbillowy-army-68599
numerous-action-56322
08/31/2021, 7:31 PMbillowy-army-68599
numerous-action-56322
08/31/2021, 7:37 PMnumerous-action-56322
08/31/2021, 8:42 PMvar dataDisk = new AzureNative.Compute.Disk($"{orgname}-{gridname}-n{i+1}-datadisk", new AzureNative.Compute.DiskArgs{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Empty",
},
DiskSizeGB = 100,
ResourceGroupName = org.ResourceGroupName
});
var vm = new AzureNative.Compute.VirtualMachine($"{orgname}-{gridname}-n{i+1}",
new AzureNative.Compute.VirtualMachineArgs
{
ResourceGroupName = org.ResourceGroupName,
HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs
{
VmSize = "Standard_A1_v2",
},
Location = regionname,
NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs
{
NetworkInterfaces = new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs
{
Id = networkInterface.Id,
Primary = true,
},
},
OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs
{
AdminPassword = "xxxxxxxxxxxx",
AdminUsername = "xxxxxxxxxxxx",
ComputerName = $"{orgname}-{gridname}-n{i+1}",
WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs
{
EnableAutomaticUpdates = true,
PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs
{
AssessmentMode = "ImageDefault",
},
ProvisionVMAgent = true,
},
},
StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs
{
ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs
{
Id = imageId,
},
OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs
{
Caching = AzureNative.Compute.CachingTypes.ReadWrite,
CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,
ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs
{
StorageAccountType = "Standard_LRS",
},
_//Name = $"{orgname}-{gridname}-n{i+1}-osdisk",_
},
DataDisks = new AzureNative.Compute.Inputs.DataDiskArgs
{
Caching = AzureNative.Compute.CachingTypes.ReadWrite,
CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Attach,
ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs
{
StorageAccountType = "Standard_LRS",
Id = dataDisk.Id
},
DiskSizeGB = 100,
Lun = 1,
}
},
});
billowy-army-68599
billowy-army-68599
billowy-army-68599
numerous-action-56322
08/31/2021, 8:46 PMnumerous-action-56322
08/31/2021, 8:46 PMvar dataDisk = new AzureNative.Compute.Disk($"{orgname}-{gridname}-n{i+1}-datadisk", new AzureNative.Compute.DiskArgs{
CreationData = new AzureNative.Compute.Inputs.CreationDataArgs
{
CreateOption = "Empty",
},
DiskSizeGB = 100,
ResourceGroupName = org.ResourceGroupName
});
var vm = new AzureNative.Compute.VirtualMachine($"{orgname}-{gridname}-n{i+1}",
new AzureNative.Compute.VirtualMachineArgs
{
ResourceGroupName = org.ResourceGroupName,
HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs
{
VmSize = "Standard_A1_v2",
},
Location = regionname,
NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs
{
NetworkInterfaces = new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs
{
Id = networkInterface.Id,
Primary = true,
},
},
OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs
{
AdminPassword = "xxxxxxxxxxxx",
AdminUsername = "xxxxxxxxxxxx",
ComputerName = $"{orgname}-{gridname}-n{i+1}",
WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs
{
EnableAutomaticUpdates = true,
PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs
{
AssessmentMode = "ImageDefault",
},
ProvisionVMAgent = true,
},
},
StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs
{
ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs
{
Id = imageId,
},
OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs
{
Caching = AzureNative.Compute.CachingTypes.ReadWrite,
CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,
ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs
{
StorageAccountType = "Standard_LRS",
},
//Name = $"{orgname}-{gridname}-n{i+1}-osdisk",
},
DataDisks = new AzureNative.Compute.Inputs.DataDiskArgs
{
Caching = AzureNative.Compute.CachingTypes.ReadWrite,
CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Attach,
ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs
{
StorageAccountType = "Standard_LRS",
Id = dataDisk.Id
},
DiskSizeGB = 100,
Lun = 1,
}
},
});
numerous-action-56322
08/31/2021, 8:48 PMvar imageId = new Pulumi.Config().Require("imageId");
billowy-army-68599
numerous-action-56322
08/31/2021, 8:51 PMnumerous-action-56322
08/31/2021, 8:56 PMbillowy-army-68599
numerous-action-56322
08/31/2021, 9:01 PMType Name Plan Info
pulumi:pulumi:Stack snqacloud-csharp-dev
~ └─ azure-native:compute:VirtualMachine org1-p1-n1 update [diff: ~storageProfile]
numerous-action-56322
08/31/2021, 9:05 PMbillowy-army-68599
billowy-army-68599
numerous-action-56322
08/31/2021, 9:45 PMbillowy-army-68599
billowy-army-68599
ComputerName = $"{orgname}-{gridname}-n{i+1}",
billowy-army-68599
numerous-action-56322
08/31/2021, 11:15 PMnumerous-action-56322
09/01/2021, 1:36 AMnumerous-action-56322
09/01/2021, 1:37 AMbillowy-army-68599
numerous-action-56322
09/01/2021, 1:09 PMbillowy-army-68599
numerous-action-56322
09/01/2021, 3:06 PMbillowy-army-68599
numerous-action-56322
09/01/2021, 3:26 PMnumerous-action-56322
09/01/2021, 7:29 PMnew CustomResourceOptions{
ReplaceOnChanges =new List<string>(new string[] {"imageReference.id"} ),
}
I even tried to relax the property path by using just "imageReference" and the the joker "*" . Any idea ?
Btw, I could not reuse the C# sample from the documentation since I don't know what the var pulumi
stands for. Could this be the reason why my updates are still not working ?
For your convenience, here's the sample provided in the documentation , the var `pulumi`appears on the last line only.
var widget = new Pulumi.Kubernetes.ApiExtensions.CustomResource("widget", new WidgetArgs
{
Spec = new WidgetSpecArgs
{
Input = "something",
}
}, pulumi.ReplaceOnChanges([]string{"spec.input"}));
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by