Table of Contents

Deploy-CafPolicyAssets

Deploys all bicep files under the current path considering them to define resources from the Microsoft.Authorization/* resource provider.

Syntax

Deploy-CafPolicyAssets
    [-DebugLevel <string>]
    [-ServicePrincipalType <string>]
    [-Recurse]
    [-WhatIf]

Description

When executed inside specific policy type folders (Assignments, Definitions, Initiative) it will read the bicep files and deploy the policies defined in them.

Example

Deploy-CafPolicyAssets

Parameter

-DebugLevel
Defines the verboseness of the debug output.

Property Value
Type: string
Allowed values: ["All", "None", "RequestContent", "ResponseContent"]
Default value: "All"
Required: False

-ServicePrincipalType
Defines the type of service principal that should be used.

Property Value
Type: string
Allowed values: ["deploy", "ops"]
Default value: "deploy"
Required: False

-Recurse
If this switch is present, the command will recurse into sub directories and deploy policies there as well.

Property Value
Type: SwitchParameter
Default value: False
Required: False

-WhatIf
If this switch is present, the command will not actually deploy anything but only show what would be deployed.

Property Value
Type: SwitchParameter
Default value: False
Required: False