none
Evaluate the load balancing capacity of your configuration RRS feed

  • Question

  • How to pass the web service input parameters while running the capacity evaluation with Azure CLI  ?

    I have a service named 'new',version '1' and it has two numeric parameters a and b.

    I tried the following command 

    az ml admin capacity run --min-thread 3 --max-thread 10 --increment 1 --service new --version 1 --args {"a":2,"b":3}

    and i got the below error:

    az: error: unrecognized arguments: --args {a:2,b:3}

    I am using Machine Learning Server 9.3

    Could anyone help me with the appropriate command ?.

    Thanks 


    Tuesday, July 31, 2018 1:01 PM

Answers

  • Hello,

    I think there might be a document discrepancy here. 

    https://docs.microsoft.com/en-us/machine-learning-server/operationalize/configure-evaluate-capacity


    In general, if you run --help on a command it will show you some examples and all the supported arguments.

    az ml admin capacity run --help

    From there you will see the argument named `--inputs` rather than `--args`

    az ml admin capacity run
      --min-thread 3 
      --max-thread 10 
      --increment 1 
      --service new 
      --version 1 
      --inputs /path/to/inputs.json


    #### /path/to/inputs.json   contains the following ####

    {
      "a": 2, 
      "b": 3
    }

    Let me know how that goes.

    Regards,

    Sean


    Tuesday, July 31, 2018 4:11 PM

All replies

  • Hello,

    I think there might be a document discrepancy here. 

    https://docs.microsoft.com/en-us/machine-learning-server/operationalize/configure-evaluate-capacity


    In general, if you run --help on a command it will show you some examples and all the supported arguments.

    az ml admin capacity run --help

    From there you will see the argument named `--inputs` rather than `--args`

    az ml admin capacity run
      --min-thread 3 
      --max-thread 10 
      --increment 1 
      --service new 
      --version 1 
      --inputs /path/to/inputs.json


    #### /path/to/inputs.json   contains the following ####

    {
      "a": 2, 
      "b": 3
    }

    Let me know how that goes.

    Regards,

    Sean


    Tuesday, July 31, 2018 4:11 PM
  • Hi Sean,

    It did work for me !!

    Thank you so much for your help 

    Wednesday, August 1, 2018 6:31 AM