ArmTerraformModelFactory.ExportResourceGroupTerraform Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
Mask sensitive attributes in the Terraform configuration. Defaults to true.
Whether to include RBAC role assignments assigned to the resources exported. Only resource-scoped role assignments are supported. Defaults to false.
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.