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

Andrsmith/add automanage snippets #1508

Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
The-DevBlog marked this conversation as resolved.
Show resolved Hide resolved
The-DevBlog marked this conversation as resolved.
Show resolved Hide resolved
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"prefix": "arm-automanage-best-practices-devtest-assignment",
The-DevBlog marked this conversation as resolved.
Show resolved Hide resolved
"description": "Create a Best Practices DevTest Configuration Profile Assignment"
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/providers/configurationProfileAssignments",
The-DevBlog marked this conversation as resolved.
Show resolved Hide resolved
"apiVersion": "2022-05-04",
"name": "[concat('${1:vmName}', '/Microsoft.Automanage/default')]",
"properties": {
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"prefix": "arm-automanage-best-practices-prod-assignment",
The-DevBlog marked this conversation as resolved.
Show resolved Hide resolved
"description": "Create a Best Practices Production Configuration Profile Assignment"
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/providers/configurationProfileAssignments",
"apiVersion": "2022-05-04",
"name": "[concat('${1:vmName}', '/Microsoft.Automanage/default')]",
"properties": {
"configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"prefix": "arm-automanage-custom-profile",
"description": "Create a Custom Automanage Configuration Profile"
},
"resources": [
{
"name": "${1:automanage}",
"type": "Microsoft.Automanage/configurationProfiles",
"apiVersion": "2022-05-04",
"location": "[resourceGroup().location]",
"properties": {
"configuration": {
"Antimalware/Enable": true,
"Antimalware/Exclusions/Paths": "",
"Antimalware/Exclusions/Extensions": "",
"Antimalware/Exclusions/Processes": "",
"Antimalware/EnableRealTimeProtection": true,
"Antimalware/RunScheduledScan": true,
"Antimalware/ScanType": "Quick",
"Antimalware/ScanDay": 7,
"Antimalware/ScanTimeInMinutes": 120,
"Backup/Enable": true,
"Backup/PolicyName": "dailyBackupPolicy",
"Backup/TimeZone": "UTC",
"Backup/InstantRpRetentionRangeInDays": 2,
"Backup/SchedulePolicy/ScheduleRunFrequency": "Daily",
"Backup/SchedulePolicy/SchedulePolicyType": "SimpleSchedulePolicy",
"Backup/RetentionPolicy/RetentionPolicyType": "LongTermRetentionPolicy",
"Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count": 180,
"Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType": "Days",
"WindowsAdminCenter/Enable": false,
"VMInsights/Enable": true,
"AzureSecurityCenter/Enable": true,
"UpdateManagement/Enable": true,
"ChangeTrackingAndInventory/Enable": true,
"GuestConfiguration/Enable": true,
"AutomationAccount/Enable": true,
"LogAnalytics/Enable": true,
"BootDiagnostics/Enable": true
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"prefix": "arm-automanage-custom-assignment",
"description": "Create a Custom Automanage Configuration Profile Assignment"
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/providers/configurationProfileAssignments",
"apiVersion": "2022-05-04",
"name": "[concat('${1:vmName}', '/Microsoft.Automanage/default')]",
"properties": {
"configurationProfile": "/subscriptions/${2:subscriptionId}/resourceGroups/${3:resourceGroup}/providers/Microsoft.Automanage/configurationProfiles/${4:profileName}"
The-DevBlog marked this conversation as resolved.
Show resolved Hide resolved
}
}
]
}