Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer requests on Policy CRUD cmdlets #14298

Merged
merged 19 commits into from
Feb 24, 2021
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update help text to cover input file format handling.
  • Loading branch information
mentat9 committed Feb 10, 2021
commit 645d1149df1c2e47fd2d397f0bd66084a13293b7
7 changes: 6 additions & 1 deletion src/Resources/Resources/help/New-AzPolicyDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ The **New-AzPolicyDefinition** cmdlet creates a policy definition that includes
PS C:\> New-AzPolicyDefinition -Name 'LocationDefinition' -Policy C:\LocationPolicy.json
```

This command creates a policy definition named LocationDefinition that contains the policy rule specified in C:\LocationPolicy.json. Example content for the LocationPolicy.json file is provided above.
This command creates a policy definition named LocationDefinition that contains the policy rule specified in C:\LocationPolicy.json. Example content for the LocationPolicy.json file is provided above. Three file content formats are supported:
1. Policy rule only (example above).
2. Policy properties object. This format is displayed in the portal when editing a policy definition and may include parameters.
3. Full policy object. This format is generated by the Azure Policy export function and may include parameters.

Note: Values provided on the command line (e.g. parameters, metadata) override corresponding values present in the file.

### Example 2: Create a parameterized policy definition using inline parameters
```
Expand Down