Skip to content

Deployment

SYNOPSIS

The template DeployIfNotExists deploys, and the values it passes to the template's parameters. Use inside DeployIfNotExists.

SYNTAX

Deployment [[-TemplateFile] <String>] [[-Template] <IDictionary>] [[-Parameters] <IDictionary>] [[-Scope] <String>] [[-Location] <Object>] [<CommonParameters>]

USED IN

DeployIfNotExists

EXAMPLES

Example 1

Deployment -TemplateFile ./templates/sql-tde.json -Parameters @{
    fullDbName = Arm "[field('fullName')]"
}

PARAMETERS

-TemplateFile

An ARM template JSON file, relative to the .bylaw.ps1 file's folder.

Type: String
Required: false
Position: 1
Accept pipeline input: false

-Template

The ARM template as a hashtable. Use [ordered] to keep its key order.

Type: IDictionary
Required: false
Position: 2
Accept pipeline input: false

-Parameters

Template parameter name -> value: a literal, Param, Arm or ResourceGroupTag.

Type: IDictionary
Required: false
Position: 3
Accept pipeline input: false

-Scope

Where to deploy: ResourceGroup (Azure's default) or Subscription.

Type: String
Required: false
Position: 4
Accept pipeline input: false

-Location

The deployment's location: a literal, Param or Arm. Required with -Scope Subscription.

Type: Object
Required: false
Position: 5
Accept pipeline input: false