public virtual Response <RoleInstanceView> GetInstanceView(CancellationToken cancellationToken = default) { using var scope = _roleInstanceCloudServiceRoleInstancesClientDiagnostics.CreateScope("RoleInstance.GetInstanceView"); scope.Start(); try { var response = _roleInstanceCloudServiceRoleInstancesRestClient.GetInstanceView(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); return(response); } catch (Exception e) { scope.Failed(e); throw; } }