// TODO: Add support for tags //[Alias("Tags")] //[Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ResourceTags)] //public Hashtable[] Tag { get; set; } public override void ExecuteCmdlet() { ExecutionBlock(() => { base.ExecuteCmdlet(); InitializeAzureBackupCmdlet(ResourceGroupName, Name); WriteDebug(String.Format(Resources.CreatingBackupVault, ResourceGroupName, Name)); var createdVault = AzureBackupClient.CreateOrUpdateAzureBackupVault(ResourceGroupName, Name, Region); if (Storage != 0) { WriteDebug(String.Format(Resources.SettingStorageType, Storage)); AzureBackupClient.UpdateStorageType(ResourceGroupName, Name, Storage.ToString()); } WriteObject(VaultHelpers.GetCmdletVault(createdVault, AzureBackupClient.GetStorageTypeDetails(VaultHelpers.GetResourceGroup(createdVault.Id), createdVault.Name))); }); }