rich-tiger-87597
01/30/2025, 1:11 PMmagnificent-eve-10499
01/30/2025, 1:54 PMappUserIdentity.Id.Apply(x => {
var reg = new Registry(name, new RegistryArgs
{
ResourceGroupName = resourceGroup.Name,
Location = resourceGroup.Location,
Sku = new SkuArgs { Name = "Basic" },
Identity = new IdentityPropertiesArgs
{
Type = ResourceIdentityType.UserAssigned,
UserAssignedIdentities = new InputMap<UserIdentityPropertiesArgs> { { x, new UserIdentityPropertiesArgs() } }
}
});
});
magnificent-eve-10499
01/30/2025, 1:54 PMrich-tiger-87597
01/30/2025, 2:06 PMResourceCreatedInsideApply: Resource Registry created from inside Output. Apply(...) potentially would not show up during pulumi preview phase depending on whether or not the value of the output instance is known
rich-tiger-87597
01/30/2025, 2:07 PMrich-tiger-87597
01/30/2025, 2:09 PM+
button and select text snippet for code output. But you can use the shortcut.magnificent-eve-10499
01/30/2025, 2:28 PMmagnificent-eve-10499
01/30/2025, 2:33 PMmagnificent-eve-10499
01/30/2025, 2:33 PMrich-tiger-87597
01/30/2025, 2:38 PMOutput<string>
which will lead to the same error.
Example 2: I didn't get the line 9. Did you create a new object appUserIdentity?
But any way, I change the code to use the first approach, I ignored the warning message and applied some changes in the code because I was returning a Registry
object, now, I'm returning Output<Registry>
rich-tiger-87597
01/30/2025, 2:38 PMrich-tiger-87597
01/30/2025, 2:38 PMmagnificent-eve-10499
01/30/2025, 2:47 PMrich-tiger-87597
01/31/2025, 8:07 AM