Skip to content

Commit

Permalink
again 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kramit committed Mar 29, 2020
1 parent cffffab commit d2d9a7c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
10 changes: 7 additions & 3 deletions templates/policyapplytest/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
"metadata": {
"displayName": "Policy definition name",
"description": "Name of the policy to assign."
}
},
"defaultValue": "vmrestriction"

},
"policyAssignmentName": {
"type": "string",
"metadata": {
"displayName": "Policy assignment name",
"description": "Name to use for a specific policy assignment."
}
},
"defaultValue": "vmrestriction policy to an RG"

},
"resourceGroupName": {
"type": "string",
Expand All @@ -23,7 +27,7 @@
"description": "Optional resource group name to limit the policy scope.",
"strongType": "existingResourceGroups"
},
"defaultValue": ""
"defaultValue": "testing"
},
"policyAssignmentMode": {
"type": "string",
Expand Down
10 changes: 1 addition & 9 deletions templates/policyapplytest/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmSize": {
"value": "Standard_D2s_v3"
},
"adminUsername": {
"value": "Student"
},
"adminPassword": {
"value": "Pa55w.rd1234"
}

}
}
6 changes: 2 additions & 4 deletions templates/policydeploytest/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
Delploy custom azure policy
Deploy custom azure policy

New-AzDeployment -Location "east us" -templatefile ./azuredeploy.json -TemplateParameterFile ./azuredeploy.parameters.json

<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fkramit%2FAZ103-Notes%2Fmaster%2Ftemplates%2Fpolicytest%2Fazuredeploy.json" target="_blank">
<img src="https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.png"/>
</a>

0 comments on commit d2d9a7c

Please sign in to comment.