Skip to content

Script doesn't work if called from another script #6

Description

@srieppo2

If I run the script from Powershell it works, but if I try to run it from another script I get this error:

The variable '$Scope' cannot be retrieved because it has not been set.
At LogicAppConnectionAuth.ps1:13 char:113

  • ... Browser -Property @{Width=580;Height=780;Url=($url -f ($Scope -join " ...
  •                                                        ~~~~~~
    
    • CategoryInfo : InvalidOperation: (Scope:String) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : VariableIsUndefined

Why?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions