New-AzTerraformExportQueryObject
Create an in-memory object for ExportQuery.
Syntax
Default (Default)
New-AzTerraformExportQueryObject
-Query <String>
[-NamePattern <String>]
[-Recursive <Boolean>]
[-FullProperty <Boolean>]
[-MaskSensitive <Boolean>]
[-TargetProvider <String>]
[<CommonParameters>]
Description
Create an in-memory object for ExportQuery.
Examples
Example 1: Create a query object with ARG query
New-AzTerraformExportQueryObject -Query "type =~ `"Microsoft.Compute/virtu
alMachines`""
FullProperty :
MaskSensitive :
NamePattern :
Query : type =~ "Microsoft.Compute/virtualMachines"
Recursive :
TargetProvider :
Type : ExportQuery
Create a query object with ARG query
Parameters
-FullProperty
Whether to output all non-computed properties in the generated Terraform configuration? This probably needs manual modifications to make it valid.
Parameter properties
Type: Boolean
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-MaskSensitive
Mask sensitive attributes in the Terraform configuration.
Parameter properties
Type: Boolean
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-NamePattern
The name pattern of the Terraform resources.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Query
The ARG where predicate.
Note that you can combine multiple conditions in one where predicate, e.g.
resourceGroup =~ "my-rg" and type =~ "microsoft.network/virtualnetworks".
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Recursive
Whether to recursively list child resources of the query result.
Parameter properties
Type: Boolean
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-TargetProvider
The target Azure Terraform Provider.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs