|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "subscriptionId": "mySubscriptionId", |
| 4 | + "resourceGroupName": "myResourceGroupName", |
| 5 | + "configurationProfileName": "customConfigurationProfile", |
| 6 | + "api-version": "2021-04-30-preview", |
| 7 | + "parameters": { |
| 8 | + "location": "East US", |
| 9 | + "tags": { |
| 10 | + "Organization": "Administration" |
| 11 | + }, |
| 12 | + "properties": { |
| 13 | + "configuration": { |
| 14 | + "Antimalware/Enable": false, |
| 15 | + "Backup/Enable": false, |
| 16 | + "VMInsights/Enable": true, |
| 17 | + "AzureSecurityCenter/Enable": true, |
| 18 | + "UpdateManagement/Enable": true, |
| 19 | + "ChangeTrackingAndInventory/Enable": true, |
| 20 | + "GuestConfiguration/Enable": true, |
| 21 | + "LogAnalytics/Enable": true, |
| 22 | + "BootDiagnostics/Enable": true |
| 23 | + }, |
| 24 | + "overrides": [ |
| 25 | + { |
| 26 | + "priority": 100, |
| 27 | + "if": { |
| 28 | + "field": "$.location", |
| 29 | + "equals": "eastus" |
| 30 | + }, |
| 31 | + "then": { |
| 32 | + "LogAnalytics/Enable": true, |
| 33 | + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", |
| 34 | + "LogAnalytics/Reprovision": true |
| 35 | + } |
| 36 | + }, |
| 37 | + { |
| 38 | + "priority": 200, |
| 39 | + "if": { |
| 40 | + "field": "$.location", |
| 41 | + "equals": "centralcanada" |
| 42 | + }, |
| 43 | + "then": { |
| 44 | + "LogAnalytics/Enable": true, |
| 45 | + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", |
| 46 | + "LogAnalytics/Reprovision": true |
| 47 | + } |
| 48 | + } |
| 49 | + ] |
| 50 | + } |
| 51 | + } |
| 52 | + }, |
| 53 | + "responses": { |
| 54 | + "201": { |
| 55 | + "headers": {}, |
| 56 | + "body": { |
| 57 | + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", |
| 58 | + "name": "customConfigurationProfile", |
| 59 | + "type": "Microsoft.Automanage/configurationProfiles", |
| 60 | + "location": "East US", |
| 61 | + "tags": { |
| 62 | + "Organization": "Administration" |
| 63 | + }, |
| 64 | + "properties": { |
| 65 | + "configuration": { |
| 66 | + "Antimalware/Enable": false, |
| 67 | + "Backup/Enable": false, |
| 68 | + "VMInsights/Enable": true, |
| 69 | + "AzureSecurityCenter/Enable": true, |
| 70 | + "UpdateManagement/Enable": true, |
| 71 | + "ChangeTrackingAndInventory/Enable": true, |
| 72 | + "GuestConfiguration/Enable": true, |
| 73 | + "LogAnalytics/Enable": true, |
| 74 | + "BootDiagnostics/Enable": true |
| 75 | + }, |
| 76 | + "overrides": [ |
| 77 | + { |
| 78 | + "priority": 100, |
| 79 | + "if": { |
| 80 | + "field": "$.location", |
| 81 | + "equals": "eastus" |
| 82 | + }, |
| 83 | + "then": { |
| 84 | + "LogAnalytics/Enable": true, |
| 85 | + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", |
| 86 | + "LogAnalytics/Reprovision": true |
| 87 | + } |
| 88 | + }, |
| 89 | + { |
| 90 | + "priority": 200, |
| 91 | + "if": { |
| 92 | + "field": "$.location", |
| 93 | + "equals": "centralcanada" |
| 94 | + }, |
| 95 | + "then": { |
| 96 | + "LogAnalytics/Enable": true, |
| 97 | + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", |
| 98 | + "LogAnalytics/Reprovision": true |
| 99 | + } |
| 100 | + } |
| 101 | + ] |
| 102 | + }, |
| 103 | + "systemData": { |
| 104 | + "createdBy": "user1@outlook.com", |
| 105 | + "createdByType": "User", |
| 106 | + "createdAt": "2020-02-03T01:01:01.1075056Z", |
| 107 | + "lastModifiedBy": "user2@outlook.com", |
| 108 | + "lastModifiedByType": "User", |
| 109 | + "lastModifiedAt": "2020-02-14T02:03:01.1974346Z" |
| 110 | + } |
| 111 | + } |
| 112 | + }, |
| 113 | + "200": { |
| 114 | + "headers": {}, |
| 115 | + "body": { |
| 116 | + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", |
| 117 | + "name": "customConfigurationProfile", |
| 118 | + "type": "Microsoft.Automanage/configurationProfiles", |
| 119 | + "location": "East US", |
| 120 | + "tags": { |
| 121 | + "Organization": "Administration" |
| 122 | + }, |
| 123 | + "properties": { |
| 124 | + "configuration": { |
| 125 | + "Antimalware/Enable": false, |
| 126 | + "Backup/Enable": false, |
| 127 | + "VMInsights/Enable": true, |
| 128 | + "AzureSecurityCenter/Enable": true, |
| 129 | + "UpdateManagement/Enable": true, |
| 130 | + "ChangeTrackingAndInventory/Enable": true, |
| 131 | + "GuestConfiguration/Enable": true, |
| 132 | + "LogAnalytics/Enable": true, |
| 133 | + "BootDiagnostics/Enable": true |
| 134 | + }, |
| 135 | + "overrides": [ |
| 136 | + { |
| 137 | + "priority": 100, |
| 138 | + "if": { |
| 139 | + "field": "$.location", |
| 140 | + "equals": "eastus" |
| 141 | + }, |
| 142 | + "then": { |
| 143 | + "LogAnalytics/Enable": true, |
| 144 | + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", |
| 145 | + "LogAnalytics/Reprovision": true |
| 146 | + } |
| 147 | + }, |
| 148 | + { |
| 149 | + "priority": 200, |
| 150 | + "if": { |
| 151 | + "field": "$.location", |
| 152 | + "equals": "centralcanada" |
| 153 | + }, |
| 154 | + "then": { |
| 155 | + "LogAnalytics/Enable": true, |
| 156 | + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", |
| 157 | + "LogAnalytics/Reprovision": true |
| 158 | + } |
| 159 | + } |
| 160 | + ] |
| 161 | + }, |
| 162 | + "systemData": { |
| 163 | + "createdBy": "user1@outlook.com", |
| 164 | + "createdByType": "User", |
| 165 | + "createdAt": "2020-02-03T01:01:01.1075056Z", |
| 166 | + "lastModifiedBy": "user2@outlook.com", |
| 167 | + "lastModifiedByType": "User", |
| 168 | + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" |
| 169 | + } |
| 170 | + } |
| 171 | + } |
| 172 | + } |
| 173 | +} |
0 commit comments