Skip to content

Implement expression functions #57

Open
@SteveL-MSFT

Description

@SteveL-MSFT

Summary of the new feature / enhancement

ARM has a specific set of functions that can be used within a configuration: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions

Proposed technical implementation details (optional)

Array

  • array
  • concat
  • contains
  • createArray
  • empty
  • first
  • indexOf
  • intersection
  • last
  • lastIndexOf
  • length
  • min
  • max
  • range
  • skip
  • take
  • union

CIDR

These aren't relevant to DSC

Comparison

  • coalesce
  • equals
  • less
  • lessOrEquals
  • greater
  • greaterOrEquals

Date

  • dateTimeAdd
  • dateTimeFromEpoch
  • dateTimeToEpoch
  • utcNow

Deployment

  • deployment?
  • environment*
  • parameters*
  • variables*

Logical

  • and
  • bool
  • false
  • if
  • not
  • or
  • true

Numeric

  • add
  • copyIndex
  • div
  • float
  • int
  • min
  • max
  • mod
  • mul
  • sub

Object

  • contains
  • createObject
  • empty
  • intersection
  • items
  • json
  • length
  • null
  • union

Resource

Subset needed for DSC

  • reference*
  • references
  • resourceId

Scope

Not applicable to DSC

String

  • base64
  • base64ToJson
  • base64ToString
  • concat
  • contains
  • dataUri
  • dataUriToString
  • empty
  • endsWith
  • first
  • format
  • guid
  • indexOf
  • join
  • last
  • lastIndexOf
  • length
  • newGuid
  • padLeft
  • replace
  • skip
  • split
  • startsWith
  • string
  • substring
  • take
  • toLower
  • toUpper
  • trim
  • uniqueString
  • uri
  • uriComponent
  • uriComponentToString

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions