SNFR26 - Output - Parameters - Decorators
ID: SNFR26 - Output-Parameters - Decorators
Output parameters MUST implement:
- Decorators in Bicep such as
description
&secure
(if sensitive) - Arguments in Terraform such as
description
&sensitive
(if sensitive)
Output parameters
@description('The resourceId of your resource.')
output sampleResourceId string = sampleResource.id
@description('The key of your resource.')
@secure()
output sampleResourceKey string = sampleResource.key
# Resource output
output "foo" {
description = "MyResource foo attribute"
value = azurerm_resource_myresource.foo
}
# Output of a sensitive attribute
output "bar" {
description = "MyResource bar attribute"
value = azurerm_resource_myresource.bar
sensitive = true
}