File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Models/CommonModels Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ public static string GetString<T>(IEnumerable<T> objList)
50
50
51
51
public class IdUtils
52
52
{
53
- static readonly Regex ResourceGroupRegex = new Regex ( @"/Subscriptions/(?<subscriptionsId>.+)/resourceGroups/(?<resourceGroupName>.+)/providers/(?<providersName>.+)/vaults/(?<BackupVaultName>.+)/backupFabrics/(?<BackupFabricName>.+)/protectionContainers/(?<containersName>.+)" , RegexOptions . Compiled ) ;
53
+ static readonly string UriFormat = @"/Subscriptions/(?<subscriptionsId>.+)/resourceGroups" +
54
+ @"/(?<resourceGroupName>.+)/providers/(?<providersName>.+)/vaults/(?<BackupVaultName>.+)" +
55
+ "/backupFabrics/(?<BackupFabricName>.+)/protectionContainers/(?<containersName>.+)" ;
56
+ static readonly Regex ResourceGroupRegex = new Regex ( UriFormat , RegexOptions . Compiled ) ;
54
57
const string NameDelimiter = ";" ;
55
58
const string IdDelimiter = "/" ;
56
59
You can’t perform that action at this time.
0 commit comments