Table of Contents

Initialize-CafSubscriptions

Initializes the subscription management resources in all subscriptions of the tenant.

Syntax

Initialize-CafSubscriptions
    [-DeploymentFileName <string>]
    [-DeploymentParameterFileName <string>]
    [-DeploymentTechType <string>]
    [-ForceAssetDownload]
    [-WhatIf]

Description

Retrieves all subscriptions in the tenant that are visible to the current user and deploys the subscription management resources to each of them.

Example

Initialize-CafSubscriptions

Parameter

-DeploymentFileName The name of the Bicep or Terraform deployment file.

Property Value
Type: string
Default value: "main.bicep"
Required: False

-DeploymentParameterFileName The name of the Bicep or Terraform parameter file.

Property Value
Type: string
Default value: "main.bicepparam"
Required: False

-DeploymentTechType The deployment technology to use for the deployment.

Property Value
Type: string
Allowed values: ["bicep", "terraform"]
Default value: "bicep"
Required: False

-ForceAssetDownload
If specified, the assets are downloaded again even if they already exist.

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

-WhatIf
If specified, the deployment is only simulated.

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