pulumi-azure-native icon indicating copy to clipboard operation
pulumi-azure-native copied to clipboard

Not all input properties are available as output properties

Open Josh-Tilles opened this issue 5 years ago • 8 comments

I haven’t investigated to see how widespread it is across the codebase, but the example occurrence I came across is in containerservice’s ManagedCluster. The documentation states that “all input properties are implicitly available as output properties”, but resourceGroupName, an input property, is not present as an output property. This can also be verified by inspecting the file.

So, is that omission a bug? Or is that claim in the documentation obsolete?

Josh-Tilles avatar Nov 06 '20 03:11 Josh-Tilles

Good point. Currently, the inputs that are part of the resource path aren't exposed as outputs (because they aren't in the HTTP response from Azure). We'll take a look at reconciling the behavior vs. the docs.

mikhailshilkov avatar Nov 06 '20 06:11 mikhailshilkov

Same question here, old Azure provider does provide inputs as outputs, which helps a lot to decouple infra logic. Currently, you need to repeat resourceGroupName N-times for each subsequent resource creation.

XBeg9 avatar Nov 16 '20 09:11 XBeg9

Hit the same issue with Service Bus namespace. Would be great if the resource group name was exposed as an output.

KatoStoelen avatar Jun 01 '21 08:06 KatoStoelen

This is also bothering us a lot, with Azure SQL databases, serverName and resourceGroupName are not available as outputs.

Is this blocked? It has already been more than 3 years :)

anacelto avatar Sep 16 '24 14:09 anacelto

Note that this is distinctly bad in Python, where properties like resource_group_name are still generated but return null at runtime, see https://github.com/pulumi/pulumi-azure-native/issues/3082

mikhailshilkov avatar Sep 20 '24 09:09 mikhailshilkov

@justinvp @Frassle this isnt a must have but is something that is blocking implementation of certain azure stack policies.

tyler-dunkel avatar Aug 21 '25 17:08 tyler-dunkel

@tyler-dunkel, this is up to the Azure Native provider team (cc: @pulumi/providers) to decide that inputs should be propagated to outputs for Azure Native resources. But fundamentally, the shape of inputs and outputs can be different, which is why I'm concerned if we're passing resource outputs to Analyze (for resource policies), which is intended to receive resource inputs.

justinvp avatar Aug 21 '25 17:08 justinvp

CC @pgavlin who may be able to explain in more detail but we are using outputs on the insights side to eval resource policies.

However, this is for stack policies.

tyler-dunkel avatar Aug 21 '25 17:08 tyler-dunkel