https://pulumi.com logo
Title
a

alert-mouse-36715

04/19/2021, 6:41 PM
Hi! just updated from azure-native 0.9.0 to 1.0.0 and am facing an exception during pulumi up and preview: [Input] Pulumi.AzureNative.Network.Inputs.SubResourceArgs.Id must not be an Input<T> error: Running program '.........Network.dll' failed with an unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: [Input] Pulumi.AzureNative.Network.Inputs.SubResourceArgs.Id must not be an Input<T> at Pulumi.InvokeArgs.ValidateMember(Type memberType, String fullName) at Pulumi.InputArgs..ctor() at Pulumi.InvokeArgs..ctor() at Pulumi.AzureNative.Network.Inputs.SubResourceArgs..ctor() at Systemorph.Cloud.Global.Network.ScNetworkGlobal..ctor() in .......\ScNetworkGlobal.cs:line 71 --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor) at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions) at System.Activator.CreateInstance[T]() at Pulumi.Deployment.Runner.<>c__4`1.<RunAsync>b__4_0() at Pulumi.Deployment.Runner.RunAsync[TStack](Func`1 stackFactory) The code in question is the following:
var virtualWan = new VirtualWan(Names.Network.Global.WanName, new VirtualWanArgs
{
	VirtualWANName = Names.Network.Global.WanName,
	Location = Names.Network.Global.AzureLocation,
	ResourceGroupName = wanRg.Name,
	Tags =
	{
		{ "Product", Names.General.ProductName },
		{ "Service", Names.General.Services.Network },
		{ "Region", Names.General.RegionNames.Global }
	},
	Type = "Basic",
	AllowVnetToVnetTraffic = true,
	DisableVpnEncryption = false
}, globalOptions);                


var vhub = new VirtualHub(region.VHubName, new VirtualHubArgs
{
	AddressPrefix = region.AddressPrefix,
	ResourceGroupName = rg.Name,
	Location = region.AzureLocation,
	Sku = "Basic",
	VirtualWan = new Pulumi.AzureNative.Network.Inputs.SubResourceArgs
	{
		Id = virtualWan.Id  // <---- here 
	},
	Tags =
	{
		{ "Product", Names.General.ProductName },
		{ "Service", Names.General.Services.Network },
		{ "Region", region.RegionName }
	},
	VirtualHubName = region.VHubName
}, options);
I'm using pulumi v2.25.2. Has there something changed? I did not spot anything in the docs... Thanks!
t

tall-librarian-49374

04/19/2021, 6:44 PM
This looks like a bug. Could you please open an issue and we’ll take care? Sorry for that…
a

alert-mouse-36715

04/19/2021, 6:52 PM
t

tall-librarian-49374

04/19/2021, 6:54 PM
Thank you. Please stay at 0.9.0 for now, we are working on the fix.
a

alert-mouse-36715

04/19/2021, 7:02 PM
👍
t

tall-librarian-49374

04/20/2021, 5:49 AM
It’s fixed in 1.0.1