-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageProvisioningfeature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.
Description
We'd like to be able to generate bicep that looks like this:
var purgeOldArtifacts = '''
version: v1.1.0
steps:
- cmd: acr purge --filter 'karpenter/snapshot/.*:.*' --ago 30d
disableWorkingDirectoryOverride: true
timeout: 3600
'''
@description('purge old artifacts from the registry periodically')
resource acrPurgeTask 'Microsoft.ContainerRegistry/registries/tasks@2019-06-01-preview' = {
name: 'purge-old-artifacts'
location: location
parent: acr
properties: {
platform: {
os: 'Linux'
architecture: 'amd64'
}
step: {
type: 'EncodedTask'
encodedTaskContent: base64(purgeOldArtifacts)
In order to make the bicep readable. But Azure.Provisioning doesn't support having multi-line string variable like this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageProvisioningfeature-requestThis issue requires a new behavior in the product in order be resolved.This issue requires a new behavior in the product in order be resolved.