File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/ResourceManager/Relay/Commands.Relay/Models Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ namespace Microsoft.Azure.Commands.Relay.Models
12
12
using Newtonsoft . Json ;
13
13
using System . Collections . Generic ;
14
14
using Azure . Management . Relay . Models ;
15
+ using System . Text . RegularExpressions ;
15
16
16
17
/// <summary>
17
18
/// Description of a Namespace resource.
@@ -63,8 +64,15 @@ public RelayNamespaceAttributes(RelayNamespace relaynamespace)
63
64
UpdatedAt = relaynamespace . UpdatedAt ;
64
65
ServiceBusEndpoint = relaynamespace . ServiceBusEndpoint ;
65
66
MetricId = relaynamespace . MetricId ;
67
+ ResourceGroup = Regex . Split ( relaynamespace . Id , @"/" ) [ 4 ] ;
66
68
}
67
69
70
+
71
+ /// <summary>
72
+ /// Gets the resourcegroup name
73
+ /// </summary>
74
+ public string ResourceGroup { get ; }
75
+
68
76
/// <summary>
69
77
/// Static constructor for RelayNamespaceAttributes class.
70
78
/// </summary>
You can’t perform that action at this time.
0 commit comments