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

Container support for mercury #384

Open
wants to merge 2 commits into
base: mercury_dev
Choose a base branch
from

Conversation

siddharth7
Copy link

Description

Checklist

@siddharth7 siddharth7 requested a review from shrac December 21, 2018 11:32
@siddharth7 siddharth7 force-pushed the users/sisi/mercury_container branch 2 times, most recently from d8cefdf to 29a7e09 Compare December 26, 2018 06:56
@siddharth7 siddharth7 force-pushed the users/sisi/mercury_container branch from 29a7e09 to 140a676 Compare December 26, 2018 07:51
@@ -35,9 +36,13 @@ public class AzureWorkloadPsBackupProvider : IPsBackupProvider
private const CmdletModel.RetentionDurationType defaultFileRetentionType =
CmdletModel.RetentionDurationType.Days;
private const int defaultFileRetentionCount = 30;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

vmContainer => string.Compare(vmContainer.Name.Split(';').Last(),
containerName, true) == 0);

if (unregisteredVmContainer != null)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an appropriate else statement which says "container already registered" message

[Parameter(Mandatory = true, Position = 1,
HelpMessage = ParamHelpMsgs.Container.ResourceId)]
[ValidateNotNullOrEmpty]
public string ResourceId { get; set; }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename property or add alias to enable piping

@@ -30,6 +30,7 @@ internal static class Container
public const string RegisteredContainer = "The recovery services backup container.";
public const string FriendlyName = "The name of the resource being managed by the" +
" Azure Backup service (for example: resource name of the VM).";
public const string ResourceId = "Azure VM Id";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take Kartik's input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant