/// <summary> /// Deactivates the device. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static void BeginDeactivate(this IDevicesOperations operations, string deviceName, string resourceGroupName, string managerName) { operations.BeginDeactivateAsync(deviceName, resourceGroupName, managerName).GetAwaiter().GetResult(); }