ARI icon indicating copy to clipboard operation
ARI copied to clipboard

Script runs OK but Excel Report file not there

Open sesmailjee opened this issue 3 years ago • 9 comments

Ran the script from Cloudshell, it ran, reported Excel file saved at: /home/seif/AzureResourceInventory/AzureResourceInventory_Report_2023-01-26_17_53.xlsx The AzureResourceInventory directory is there but no Excel Report file in it!

sesmailjee avatar Jan 26 '23 18:01 sesmailjee

Hello,

I believe the Import-Excel module was not installed correctly.

Can you try to install it manually?

Install-Module -Name ImportExcel -Force

Claudio-Merola avatar Jan 31 '23 13:01 Claudio-Merola

Estou com mesmo problema porém no powershell. Na saída mostra até a quantidade de recursos bem como o nome do arquivo que foi gerado. Porem quando vou em c:\ AzureresourceInventory o arquivo xlxs não está la. Já rodei o comentado de Install-Module mas nada. Mais alguma dica?

rafamaximo2022 avatar Feb 06 '23 17:02 rafamaximo2022

Outra observação, precisa rodar no Powershell 7?

rafamaximo2022 avatar Feb 06 '23 19:02 rafamaximo2022

Make sure to add the -Online parameter to the command to create the excel/xml files.

RonaldMem avatar Feb 08 '23 18:02 RonaldMem

The -Online parameter is not really necessary, it's just for the script to read the extra ps1 files directly from github.

My suggestion is always to add the -Debug parameter as it gives more details if something is missing or what went wrong.

Claudio-Merola avatar Feb 22 '23 19:02 Claudio-Merola

Hello,

I believe the Import-Excel module was not installed correctly.

Can you try to install it manually?

Install-Module -Name ImportExcel -Force

I can confirm that the solution to my missing Excel file issue was resolved once the Import-Excel module was installed correctly. In my case, this was probably made worse by OneDrive messing up the user's PowerShell folder by creating additional copies, and the installed module didn't stick.

PeterBursky avatar Feb 28 '23 09:02 PeterBursky

Hi Folks, Try install Import-Excel module

On your terminal, use this command: Install-Module -Name ImportExcel

If you already installed this module, force update him, with:

Update-Module -Name ImportExcel -Force

After this, re-run Azure Resource Inventory command.

If persists, use the flag "-Online"

.\AzureResourceInventory.ps1 -TenantID XXXX -SubscriptionID XXXX -Online

felipeschulz avatar Mar 15 '23 21:03 felipeschulz

Hello,

Can you try the version 3.0 and let me know if the issue still occurs?

Thanks

Claudio-Merola avatar May 04 '23 20:05 Claudio-Merola

This Issue is stale and may be automatically close soon.

github-actions[bot] avatar Jun 04 '23 14:06 github-actions[bot]