Initialize-CafDeploymentSpGroup
Initializes the security group AZ-CAF-DeployPrincipals for deployment service principals.
Syntax
Initialize-CafDeploymentSpGroup
Description
Retrieves all service principals in the tenant that match the deployment naming convention and adds them to the AZ-CAF-DeployPrincipals security group. It also assigns the Log Analytics Contributor role to the group so that deployment principals can write diagnostic data.
In most cases you do not need to call this command directly. Initialize-CafServicePrincipals calls it automatically at the end of its run unless the -DoNotEnsureDeployGroup switch is provided.
Example
Initialize-CafDeploymentSpGroup
See also
Initialize-CafServicePrincipals— calls this command automatically after creating service principals