@@ -105,7 +105,7 @@ public TrafficManagerEndpoint CreateTrafficManagerEndpoint(string resourceGroupN
105
105
}
106
106
} ) ;
107
107
108
- return TrafficManagerClient . GetPowershellTrafficManagerEndpoint ( resourceGroupName , profileName , endpointType , endpointName , response . Endpoint . Properties ) ;
108
+ return TrafficManagerClient . GetPowershellTrafficManagerEndpoint ( response . Endpoint . Id , resourceGroupName , profileName , endpointType , endpointName , response . Endpoint . Properties ) ;
109
109
}
110
110
111
111
public TrafficManagerProfile GetTrafficManagerProfile ( string resourceGroupName , string profileName )
@@ -120,6 +120,7 @@ public TrafficManagerEndpoint GetTrafficManagerEndpoint(string resourceGroupName
120
120
EndpointGetResponse response = this . TrafficManagerManagementClient . Endpoints . Get ( resourceGroupName , profileName , endpointType , endpointName ) ;
121
121
122
122
return TrafficManagerClient . GetPowershellTrafficManagerEndpoint (
123
+ response . Endpoint . Id ,
123
124
resourceGroupName ,
124
125
profileName ,
125
126
endpointType ,
@@ -171,6 +172,7 @@ public TrafficManagerEndpoint SetTrafficManagerEndpoint(TrafficManagerEndpoint e
171
172
parameters ) ;
172
173
173
174
return TrafficManagerClient . GetPowershellTrafficManagerEndpoint (
175
+ endpoint . Id ,
174
176
endpoint . ResourceGroupName ,
175
177
endpoint . ProfileName ,
176
178
endpoint . Type ,
@@ -285,10 +287,11 @@ private static string ExtractResourceGroupFromId(string id)
285
287
return id . Split ( '/' ) [ 4 ] ;
286
288
}
287
289
288
- private static TrafficManagerEndpoint GetPowershellTrafficManagerEndpoint ( string resourceGroupName , string profileName , string endpointType , string endpointName , EndpointProperties mamlEndpointProperties )
290
+ private static TrafficManagerEndpoint GetPowershellTrafficManagerEndpoint ( string id , string resourceGroupName , string profileName , string endpointType , string endpointName , EndpointProperties mamlEndpointProperties )
289
291
{
290
292
return new TrafficManagerEndpoint
291
293
{
294
+ Id = id ,
292
295
ResourceGroupName = resourceGroupName ,
293
296
ProfileName = profileName ,
294
297
Name = endpointName ,
0 commit comments