Skip to content

Latest commit

 

History

History
105 lines (73 loc) · 1.92 KB

Export-BicepChildResource.md

File metadata and controls

105 lines (73 loc) · 1.92 KB
external help file Module Name online version schema
Bicep-help.xml
Bicep
2.0.0

Export-BicepChildResource

SYNOPSIS

Exports all child resources of a specified Azure resource container as Bicep.

SYNTAX

OutputPath (Default)

Export-BicepChildResource [-ParentResourceId] <String> [-OutputDirectory] <String>
 [<CommonParameters>]

AsString

Export-BicepChildResource [-ParentResourceId] <String> [-AsString]
 [<CommonParameters>]

DESCRIPTION

Exports all child resources of a specified Azure resource container as Bicep.

EXAMPLES

Example 1

PS C:\> Export-BicepChildResource -ParentResourceId $ParentResourceId -OutputDirectory $Path

Exports all child resources from an Azure resource container by id.

PARAMETERS

-AsString

Exports the resources as string.

Type: SwitchParameter
Parameter Sets: AsString
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OutputDirectory

Specifies the directory to output the Bicep files to.

Type: String
Parameter Sets: OutputPath
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ParentResourceId

The resource id of the resource container, or parent resource.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: 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.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS