ESP32 board not getting installed in Arduino IDE

I am trying to install esp32 for but not able to do it. I tried with the board manager first by taking this link and inserting it inboard manager with comma separation. https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

However, I recieved an error saying esptool-2.6.1-windows.zip(system cannot find file specified)

I tried following this link as well to install esp2 by git - https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/windows.md
I was able to find the esp32 board atleast but getting missing errors while compiling - Invalid library found in C:\Users\HP\Documents\Arduino\hardware\espressif\esp32\libraries\AzureIoT: no headers files (.h) found in C:\Users\HP\Documents\Arduino\hardware\espressif\esp32\libraries\AzureIoT

What should I do? whats the best method to install esp32 board?

sul97:
However, I recieved an error saying esptool-2.6.1-windows.zip(system cannot find file specified)

I just did an installation with no problems.

This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to whitelist the appropriate file, folder, or process so it doesn't interfere with compilation.

sul97:
I was able to find the esp32 board atleast but getting missing errors while compiling - Invalid library found in C:\Users\HP\Documents\Arduino\hardware\espressif\esp32\libraries\AzureIoT: no headers files (.h) found in C:\Users\HP\Documents\Arduino\hardware\espressif\esp32\libraries\AzureIoT

That's because you skipped a step in the instructions:

open a Git Bash session pointing to [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32 and execute git submodule update --init --recursive

sul97:
whats the best method to install esp32 board?

The Boards Manager installation is the best. The "Using Arduino IDE with the development repository" installation instructions should only be used if you are a beta tester or developer with the ESP32 core for Arduino project. They should not be followed for normal use of the ESP32 core. The reason is that the development version of the ESP32 core is more likely to have bugs.

Cool, it worked. Windows firewall was creating a problem so installed it after turning it off. Thanks a ton.

You're welcome. I'm glad to hear it's working now. Thanks for taking the time to post an update with your solution.
Enjoy!