Skip to content

Latest commit

 

History

History
98 lines (67 loc) · 2.21 KB

Get-AzPolicyAssignmentDataSource.md

File metadata and controls

98 lines (67 loc) · 2.21 KB
external help file Module Name online version schema
PSRule.Rules.Azure-help.xml
PSRule.Rules.Azure
2.0.0

Get-AzPolicyAssignmentDataSource

SYNOPSIS

Get policy assignment sources.

SYNTAX

Get-AzPolicyAssignmentDataSource [-InputPath <String[]>] [[-Path] <String>] [<CommonParameters>]

DESCRIPTION

This is an experimental cmdlet.

Get policy assignment sources. By default *.assignment.json sources are discovered from the current working directory.

EXAMPLES

Example 1

Get-AzPolicyAssignmentDataSource
AssignmentFile
--------------
C:\00000000-0000-0000-0000-000000000001.assignment.json
C:\Users\user\00000000-0000-0000-0000-000000000002.assignment.json

Gets policy assignment sources from any *.assignment.json sources within any folder in the current working directory path.

PARAMETERS

-InputPath

A path or filter to search for assignment files within the path specified by -Path. By default, files with *.assignment.json suffix will be used.

When searching for assignment files all sub-directories will be scanned. To perform a shallow search, prefix input paths with ./.

Type: String[]
Parameter Sets: (All)
Aliases: f, AssignmentFile, FullName

Required: False
Position: Named
Default value: '*.assignment.json'
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True

-Path

Sets the path to search for assignment files in. By default, this is the current working path.

Type: String
Parameter Sets: (All)
Aliases: p

Required: False
Position: 0
Default value: $PWD
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String[]

OUTPUTS

PSRule.Rules.Azure.Pipeline.PolicyAssignmentSource

NOTES

RELATED LINKS