Comments (10)
Hello @Claudio-Merola , the new script worked better than the previous one. I still see error messages in the job section, this makes me wonder did it pull out all the resources?
Few of the messages from the Job streams:
InvalidOperation: Line | 45 | $VNET = $data.virtualNetworkSubnetId.split("/")[8] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | You cannot call a method on a null-valued expression.
InvalidOperation: Line | 46 | $SUBNET = $data.virtualNetworkSubnetId.split("/")[10] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | You cannot call a method on a null-valued expression.
Remove-Variable: Line | 174 | … Remove-Variable PIP, vmnic, vmnsg, VNET, Subnet | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find a variable with the name 'PIP'.
InvalidOperation: Line | 121 | … $PIP = $vmnic.properties.ipConfigurations.properties.publ … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | You cannot call a method on a null-valued expression.
Is there something I am doing differently?
from ari.
Hello,
The Automation Account method is outdated, we are working on a newer version.
To be honest I'm surprised it worked that far.
Do you have App Services in your environment? By the error message I believe it is complaining by empty values in that resource.
from ari.
Hello,
Yes, we indeed have quite a few App Services running in our environment. How do I go around this error message? Could you please advise?
from ari.
Hello @Sabrthor,
Can you try the new automation account method we release in the version 3.0?
Thanks
from ari.
Hi @Sabrthor
Last week I fixed a bug in the script that might have relation with your issue.
Can you try the updated version of the Automation Script and see how it goes?
Thanks
from ari.
This Issue is stale and may be automatically close soon.
from ari.
Hi @Claudio-Merola,
Unfortunately, this still hasn't been solved.
I have done following:
- Reinstalled all the required modules with Runtime 7.2.
- Ensured the Automation Account has Reader permissions from the Management Group.
- Ensured the Automation Account has Storage Blob Data Contributor permissions to the Storage Account.
When I ran the automation, the output still shows bunch of errors.
What I could not believe is the difference in the resource list.
The spreadsheet shows a total resource count of 13004, whereas, I have about ~27k varied resources.
The same spreadsheet overview page says, I have 786 Virtual Machines in the Overview page:
The Virtual Machine sheet shows ~1400 machines:
In the output of the Automation script, it says ~2200 VMs:
While in reality, I have 1894 VMs. And this is just not limited to VMs, but almost any resource type (such as Virtual Network).
What I also observe is the Subscription list in the last sheet is completely wrong. I have about 40+ subscriptions and the sheet shows 24.
from ari.
This Issue is stale and may be automatically close soon.
from ari.
Hi @Sabrthor ,
The Excel sheet will present more VMs, because of the extra resources, like VMs with more than 1 NIC, or the extensions, so is expected to have more lines. But the script should present the correct number of VMs...
I have updated the script some time ago with an extra option at the line 95, can you change the: $RunDebug to $true? So we can have some more details of might be going on.
from ari.
This Issue is stale and may be automatically close soon.
from ari.
Related Issues (20)
- fails to create report HOT 12
- Draw.io can not open the XML file created by the program
- Load Balancer details not available HOT 4
- ARI Security Checks Report Incorrect Recommendation for the Guest Agent HOT 5
- XML not created (State Broken) HOT 4
- Azure Firewall - Add option to toggle between rule count and actual rules HOT 3
- Ari Storage Error HOT 3
- version 3.1.14 not producing any output in a simple environment without these changes. HOT 1
- draw.io Error Duplicate ID-No puedo abrir el diagrama HOT 2
- changing the output method from excel to SQL or table storage HOT 2
- AzureResourceInventory.ps1 has command that causes issues HOT 3
- Header/Footer Setup for DrawIO Output HOT 2
- Getting an error when executing this xml file for diagram HOT 2
- Report - Overview tab mostly blank - "pivottable report can't overlap a table" HOT 5
- I would like to add azure inventory Services Azure Database for PostgreSQL flexible servers. HOT 5
- NIC Info HOT 1
- Azure Backup and Replication HOT 1
- Security center
- SQL DB HOT 1
- Unused Resource or Orphange Resouce details.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ari.