An air-conditioning apparatus in which a compressor, a heat-source-side heat exchanger, an expansion valve and a load-side heat exchanger are coupled to each other by a refrigerant pipe to form a refrigerant circuit, the compressor being to be driven by an inverter device, the air-conditioning apparatus comprising: the inverter device; a controller (9A, 10A) configured to control the refrigerant circuit; characterised in that the air-conditioning apparatus further comprises: a heat-transfer fin provided at the inverter device, and configured to cause heat generated from the inverter device to be transferred; and a temperature detection device provided at the heat-transfer fin, and configured to detect a temperature of the heat-transfer fin as temperature information, wherein the controller (9A, 10A) includes: a power-failure detection unit configured to detect a power failure; a temperature difference calculation unit configured to calculate a difference between a temperature which is detected as the temperature information when a power recovery is made from a power-failure state and a temperature which is detected as the temperature information when the power-failure detection unit detects the power failure; and an operation control unit configured to: perform compressor protection control of heating the compressor for a fixed period of time and then rotationally drive the compressor, when the difference is greater than a power-failure reference threshold value; and rotationally drive the compressor without performing the compressor protection control, when the difference is smaller than or equal to the power-failure reference threshold value. the inverter device; a controller (9A, 10A) configured to control the refrigerant circuit; characterised in that the air-conditioning apparatus further comprises: a heat-transfer fin provided at the inverter device, and configured to cause heat generated from the inverter device to be transferred; and a temperature detection device provided at the heat-transfer fin, and configured to detect a temperature of the heat-transfer fin as temperature information, wherein the controller (9A, 10A) includes: a power-failure detection unit configured to detect a power failure; a temperature difference calculation unit configured to calculate a difference between a temperature which is detected as the temperature information when a power recovery is made from a power-failure state and a temperature which is detected as the temperature information when the power-failure detection unit detects the power failure; and an operation control unit configured to: perform compressor protection control of heating the compressor for a fixed period of time and then rotationally drive the compressor, when the difference is greater than a power-failure reference threshold value; and rotationally drive the compressor without performing the compressor protection control, when the difference is smaller than or equal to the power-failure reference threshold value. a heat-transfer fin provided at the inverter device, and configured to cause heat generated from the inverter device to be transferred; and a temperature detection device provided at the heat-transfer fin, and configured to detect a temperature of the heat-transfer fin as temperature information, wherein the controller (9A, 10A) includes: a power-failure detection unit configured to detect a power failure; a temperature difference calculation unit configured to calculate a difference between a temperature which is detected as the temperature information when a power recovery is made from a power-failure state and a temperature which is detected as the temperature information when the power-failure detection unit detects the power failure; and an operation control unit configured to: perform compressor protection control of heating the compressor for a fixed period of time and then rotationally drive the compressor, when the difference is greater than a power-failure reference threshold value; and rotationally drive the compressor without performing the compressor protection control, when the difference is smaller than or equal to the power-failure reference threshold value. a power-failure detection unit configured to detect a power failure; a temperature difference calculation unit configured to calculate a difference between a temperature which is detected as the temperature information when a power recovery is made from a power-failure state and a temperature which is detected as the temperature information when the power-failure detection unit detects the power failure; and an operation control unit configured to: perform compressor protection control of heating the compressor for a fixed period of time and then rotationally drive the compressor, when the difference is greater than a power-failure reference threshold value; and rotationally drive the compressor without performing the compressor protection control, when the difference is smaller than or equal to the power-failure reference threshold value. perform compressor protection control of heating the compressor for a fixed period of time and then rotationally drive the compressor, when the difference is greater than a power-failure reference threshold value; and rotationally drive the compressor without performing the compressor protection control, when the difference is smaller than or equal to the power-failure reference threshold value.