Skip to content

Commit 35faee7

Browse files
DCtheGeekpilor
authored andcommittedJan 28, 2019
Converting all PowerShell examples from the AzureRM to Az module (#306)
1 parent 83173f6 commit 35faee7

File tree

88 files changed

+186
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+186
-186
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This repository contains samples of Azure Policies that can be used as reference
2323

2424
- [Azure CLI](https://docs.microsoft.com/cli/azure/policy)
2525
- Azure PowerShell
26-
- [Policy](https://docs.microsoft.com/powershell/module/azurerm.resources/#policies)
26+
- [Policy](https://docs.microsoft.com/powershell/module/az.resources/#policies)
2727
- [Guest Configuration (preview)](https://www.powershellgallery.com/packages/AzureRM.GuestConfiguration)
2828
- REST API
2929
- [Events](https://docs.microsoft.com/rest/api/policy-insights/policyevents)

‎readme.generate.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
## Try on PowerShell
1010

1111
````powershell
12-
$definition = New-AzureRmPolicyDefinition -Name "{{policyName}}" -DisplayName "{{displayName}}" -description "{{description}}" -Policy 'https://raw.githubusercontent.com/Azure/azure-policy-samples/master/samples/{{path}}/azurepolicy.rules.json' -Parameter 'https://raw.githubusercontent.com/Azure/azure-policy-samples/master/samples/{{path}}/azurepolicy.parameters.json' -Mode All
12+
$definition = New-AzPolicyDefinition -Name "{{policyName}}" -DisplayName "{{displayName}}" -description "{{description}}" -Policy 'https://raw.githubusercontent.com/Azure/azure-policy-samples/master/samples/{{path}}/azurepolicy.rules.json' -Parameter 'https://raw.githubusercontent.com/Azure/azure-policy-samples/master/samples/{{path}}/azurepolicy.parameters.json' -Mode All
1313
$definition
14-
$assignment = New-AzureRMPolicyAssignment -Name <assignmentname> -Scope <scope> -PolicyDefinition $definition
14+
$assignment = New-AzPolicyAssignment -Name <assignmentname> -Scope <scope> -PolicyDefinition $definition
1515
$assignment
1616
````
1717

0 commit comments

Comments
 (0)
Please sign in to comment.