Git Product home page Git Product logo

Comments (10)

Sabrthor avatar Sabrthor commented on June 11, 2024 1

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?

Capture

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.

Claudio-Merola avatar Claudio-Merola commented on June 11, 2024

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.

Sabrthor avatar Sabrthor commented on June 11, 2024

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.

Claudio-Merola avatar Claudio-Merola commented on June 11, 2024

Hello @Sabrthor,

Can you try the new automation account method we release in the version 3.0?

Thanks

from ari.

Claudio-Merola avatar Claudio-Merola commented on June 11, 2024

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.

github-actions avatar github-actions commented on June 11, 2024

This Issue is stale and may be automatically close soon.

from ari.

Sabrthor avatar Sabrthor commented on June 11, 2024

Hi @Claudio-Merola,

Unfortunately, this still hasn't been solved.

I have done following:

  1. Reinstalled all the required modules with Runtime 7.2.
  2. Ensured the Automation Account has Reader permissions from the Management Group.
  3. 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.
image
image

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:
image

The Virtual Machine sheet shows ~1400 machines:
image

In the output of the Automation script, it says ~2200 VMs:
image

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.

github-actions avatar github-actions commented on June 11, 2024

This Issue is stale and may be automatically close soon.

from ari.

Claudio-Merola avatar Claudio-Merola commented on June 11, 2024

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.

github-actions avatar github-actions commented on June 11, 2024

This Issue is stale and may be automatically close soon.

from ari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.