Possible to specify the type of an object? #2496
-
For instance, when defining a webapp resource, we might abstract out the properties to another object so that it can be easily shared. resource webapp 'Microsoft.Web/sites@2020-12-01' = {
name: '${webAppName}'
location: location
identity: {
type: 'SystemAssigned'
}
properties: standardParams // Standard params here
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @ctolkien I noticed you didn't get an answer to your discussion, so I wanted to follow up. Are you able to provide some more detail? Are you referencing the parameter via a Module from another Bicep File ? below is as.bicep module. param standardParams object
resource as 'Microsoft.Compute/availabilitySets@2021-03-01' = {
name: standardParams.name
location: standardParams.location
properties: {
platformFaultDomainCount: 3
platformUpdateDomainCount: 5
}
} Then I have another bicep file referencing that module module availabilitySet 'as.bicep' = {
name: 'myAS'
params: {
standardParams: {
<intellisense>
}
}
} I believe that you maybe asking if the location above can do a lookup for the property names that exist on the object in the Module ? In the above case |
Beta Was this translation helpful? Give feedback.
-
going to mark this one as answered for now, since the conversation is being tracked in #622 |
Beta Was this translation helpful? Give feedback.
going to mark this one as answered for now, since the conversation is being tracked in #622