public void CreateNetworkMappingTest() { using (UndoContext context = UndoContext.Current) { context.Start(); var client = GetSiteRecoveryClient(CustomHttpHandler); // Get Servers var servers = client.Servers.List(RequestHeaders); // 57f95c35-6c83-42ce-bb21-2c4f10f92d8e var networksOnPrimary = client.Networks.List(servers.Servers[0].ID, RequestHeaders); var networksOnRecovery = client.Networks.List(servers.Servers[1].ID, RequestHeaders); CreateNetworkMappingInput createNetworkMappingInput = new CreateNetworkMappingInput(); createNetworkMappingInput.PrimaryServerId = servers.Servers[0].ID; createNetworkMappingInput.PrimaryNetworkId = networksOnPrimary.Networks[0].ID; createNetworkMappingInput.RecoveryServerId = servers.Servers[1].ID; createNetworkMappingInput.RecoveryNetworkId = networksOnRecovery.Networks[0].ID; NetworkMappingInput networkMappingInput = new NetworkMappingInput(); networkMappingInput.NetworkTargetType = NetworkTargetType.SCVMM.ToString(); networkMappingInput.CreateNetworkMappingInput = DataContractUtils.Serialize<CreateNetworkMappingInput>(createNetworkMappingInput); var response = client.NetworkMappings.Create(networkMappingInput, RequestHeaders); Assert.NotNull(response.Job); Assert.NotNull(response.Job.ID); Assert.True(response.Job.Errors.Count < 1, "Errors found while creating network mapping"); Assert.Equal(HttpStatusCode.OK, response.StatusCode); CreateAzureNetworkMappingInput mappingInput = new CreateAzureNetworkMappingInput(); } }