private ConfigurationProfilePreference GetAConfigurationProfilePreferenceObject(string name) { //var exclusions = new Dictionary<string, string>(){ // {"processes", "notepad.exe"}, // {"extensions", "sql"}, // {"paths", "c:\\temp\\"} }; var customAntiMalwareProps = new ConfigurationProfilePreferenceAntiMalware( enableRealTimeProtection: "True", runScheduledScan: "True", exclusions: null, scanType: "Quick", scanDay: "1", scanTimeInMinutes: "360"); var preferenceProperties = new ConfigurationProfilePreferenceProperties( vmBackup: null, antiMalware: customAntiMalwareProps); var thisAssignment = new ConfigurationProfilePreference( id: null, name: name, location: "eastus", properties: preferenceProperties); return(thisAssignment); }
private ConfigurationProfilePreference GetAConfigurationProfilePreferenceObject() { var customAntiMalwareProps = new ConfigurationProfilePreferenceAntiMalware( enableRealTimeProtection: "True", exclusions: new[] { "C:\\temp", "notepad.exe" }, scanType: "Quick", scanDay: "1", scanTimeInMinutes: "360"); var vmBackupProps = new ConfigurationProfilePreferenceVmBackup("Pacific Standard Time", 14, null, null); var preferenceProperties = new ConfigurationProfilePreferenceProperties( vmBackup: vmBackupProps, antiMalware: customAntiMalwareProps); var thisAssignment = new ConfigurationProfilePreference( id: null, name: "default", location: "West US 2", properties: preferenceProperties); return(thisAssignment); }