Skip to content

network interface error #12

Description

@stibra

I have error when running commands:

VERBOSE: Adding a resource definition for 'servicename_vmname_armpublicip' public IP address
You cannot call a method on a null-valued expression.
At C:\tools\asm2armVm.ps1:491 char:5

  • $dnsSuffix = '{0}.cloudapp.azure.com' -f $Location.Replace(' ','' ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

The property 'Length' cannot be found on this object. Verify that the property exists.
At C:\tools\asm2armVm.ps1:492 char:5

  • $maxServiceNameLength = 253 - $dnsSuffix.Length
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
    • FullyQualifiedErrorId : PropertyNotFoundStrict

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions