BCPNFR9 - Inputs - Decorators
Similar to
BCPNFR21
, input parameters MUST implement
decorators
such as description
& secure
(if sensitive).
Further, input parameters SHOULD implement decorators like allowed
, minValue
, maxValue
, minLength
& maxLength
(and others if available) as they have a big positive impact on the module’s usability.
@description('Optional. The threshold of your resource.')
@minValue(1)
@maxValue(10)
param threshold: int?
@description('Required. The SKU of your resource.')
@allowed([
'Basic'
'Premium'
'Standard'
])
param sku string