Create a SQL Database from Azure CLI 2.0

Sign in to queue

The Discussion

  • User profile image
    fpm

    Too bad none of the scripts work in PowerShell 5.0 on Windows 10 64-bit as of 2017-05-27. Hopefully, Microsoft will not leave its Windows PowerShell users out of the loop for too much longer, unless you enjoy seeing a screen full of red like the following:
    ps>export adminlogin=ServerAdmin
    export : The term 'export' is not recognized as the name of a cmdlet, function, script file, or operable progr
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + export adminlogin=ServerAdmin
    + ~~~~~~
    + CategoryInfo : ObjectNotFound: (export:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    ps>export password=Server1$
    export : The term 'export' is not recognized as the name of a cmdlet, function, script file, or operable progr
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + export password=Server1$
    + ~~~~~~
    + CategoryInfo : ObjectNotFound: (export:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    ps># The logical server name has to be unique in the system
    ps>export servername=fpmserver-$RANDOM
    export : The term 'export' is not recognized as the name of a cmdlet, function, script file, or operable progr
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + export servername=fpmserver-$RANDOM
    + ~~~~~~
    + CategoryInfo : ObjectNotFound: (export:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Add Your 2 Cents