ArmTerraformModelFactory.ExportResourceGroupTerraform Method

Definition

Export parameter for a resource group.

public static Azure.ResourceManager.Terraform.Models.ExportResourceGroupTerraform ExportResourceGroupTerraform(Azure.ResourceManager.Terraform.Models.TargetTerraformProvider? targetProvider = default, bool? isOutputFullPropertiesEnabled = default, bool? isMaskSensitiveEnabled = default, bool? includeRoleAssignment = default, bool? includeManagedResource = default, System.Collections.Generic.IEnumerable<string> azureResourcesToExclude = default, System.Collections.Generic.IEnumerable<string> terraformResourcesToExclude = default, string resourceGroupName = default, string namePattern = default);
static member ExportResourceGroupTerraform : Nullable<Azure.ResourceManager.Terraform.Models.TargetTerraformProvider> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * seq<string> * seq<string> * string * string -> Azure.ResourceManager.Terraform.Models.ExportResourceGroupTerraform
Public Shared Function ExportResourceGroupTerraform (Optional targetProvider As Nullable(Of TargetTerraformProvider) = Nothing, Optional isOutputFullPropertiesEnabled As Nullable(Of Boolean) = Nothing, Optional isMaskSensitiveEnabled As Nullable(Of Boolean) = Nothing, Optional includeRoleAssignment As Nullable(Of Boolean) = Nothing, Optional includeManagedResource As Nullable(Of Boolean) = Nothing, Optional azureResourcesToExclude As IEnumerable(Of String) = Nothing, Optional terraformResourcesToExclude As IEnumerable(Of String) = Nothing, Optional resourceGroupName As String = Nothing, Optional namePattern As String = Nothing) As ExportResourceGroupTerraform

Parameters

targetProvider
Nullable<TargetTerraformProvider>

The target Azure Terraform provider. Defaults to azurerm.

isOutputFullPropertiesEnabled
Nullable<Boolean>

Whether to output all non-computed properties in the generated Terraform configuration. If set to false empty-valued properties will be omitted from the configuration. Defaults to true.

isMaskSensitiveEnabled
Nullable<Boolean>

Mask sensitive attributes in the Terraform configuration. Defaults to true.

includeRoleAssignment
Nullable<Boolean>

Whether to include RBAC role assignments assigned to the resources exported. Only resource-scoped role assignments are supported. Defaults to false.

includeManagedResource
Nullable<Boolean>

Whether to include internal resources managed by Azure in the exported configuration. Defaults to false.

azureResourcesToExclude
IEnumerable<String>

Excludes specified Azure Resource Ids. Case-insensitive Azure Resource ID regular expression. Example: ["/subscriptions/[0-9a-f-]+/resourceGroups/my-rg.*"].

terraformResourcesToExclude
IEnumerable<String>

Excludes specified Terraform resource types. Example: ["azurerm_virtual_network"].

resourceGroupName
String

The name of the resource group to be exported.

namePattern
String

The id prefix for the exported Terraform resources. Defaults to res-.

Returns

A new ExportResourceGroupTerraform instance for mocking.

Applies to