Table of Contents

Initialize-CafServicePrincipals

Initializes the default service principals in all management groups and subscriptions of the tenant.

Syntax

Initialize-CafServicePrincipals
    [-IamSuffix <string>]
    [-DoNotEnsureDeployGroup]
    [-WhatIf]

Description

Retrieves all subscriptions in the tenant that are visible to the current user and deploys default service principals to each of them.

Example

Initialize-CafServicePrincipals

Parameter

-IamSuffix The suffix appended to the project name when creating service principals for IAM subscriptions.

Property Value
Type: string
Default value: "iam"
Required: False

-DoNotEnsureDeployGroup
If provided this function will not call Initialize-CafDeploymentSpGroup after SP creation automatically.

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

-WhatIf
If this switch is present, the command will not actually perform the deployment and only output changes.

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