public ConfigurationProfileAssignment CreateDeployment() { var client = GetAutomanageClient(); var properties = new ConfigurationProfileAssignmentProperties(configurationProfile: "Azure virtual machine best practices - Production", targetId: null, accountId: null, configurationProfilePreferenceId: null, provisioningStatus: null, null); var ass = new ConfigurationProfileAssignment("someNewId", "StephenTest", "East US2", "Azure virtual machine best practices - Production", properties); //var configParams = new ConfigurationProfilePreference("someId", "StephensTest", "East US", null, null, null); var t = client.ConfigurationProfileAssignments.BeginCreateOrUpdate("default", ass, "DeluxeTest", "TestMeAmvmv"); return(t); }
private ConfigurationProfileAssignment GetAConfigurationProfileAssignment() { var assignmentProperties = new ConfigurationProfileAssignmentProperties( configurationProfile: "Azure Best Practices - Prod", targetId: vmID, accountId: automanageAccountId, configurationProfilePreferenceId: null, //change to the ARM id of a preference object to test preference application provisioningStatus: null, compliance: null); var thisAssignment = new ConfigurationProfileAssignment( id: null, name: "default", location: "East US 2", properties: assignmentProperties); return(thisAssignment); }