Script runs OK but Excel Report file not there
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!
Hello,
I believe the Import-Excel module was not installed correctly.
Can you try to install it manually?
Install-Module -Name ImportExcel -Force
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?
Outra observação, precisa rodar no Powershell 7?
Make sure to add the -Online parameter to the command to create the excel/xml files.
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.
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.
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
Hello,
Can you try the version 3.0 and let me know if the issue still occurs?
Thanks
This Issue is stale and may be automatically close soon.