Import-​Azure​Rm​Ml​Web​Service

Imports a web service definition to an object instance.

Syntax

Import-AzureRmMlWebService
      -InputFile <String>
      [<CommonParameters>]
Import-AzureRmMlWebService
      -JsonString <String>
      [<CommonParameters>]

Description

The Import-AzureRmMlWebService cmdlet imports a web service definition instance from a JavaScript Object Notation (JSON) object specified either directly or in a referenced file.

Examples

Example 1: Import a web service definition from string

PS C:\>Import-AzureRmMlWebService -JsonString $JSONDefinition

This command imports a web service definition from a string defined in the variable named $JSONDefinition.

Example 2: Import a web service definition from a file path

PS C:\>Import-AzureRmMlWebService -InputFile "C:\mlservice.json"

This command imports a web service definition from the input file named C:\mlservice.json.

Required Parameters

-InputFile

Specifies the JSON file path from where the cmdlet imports the web service definition.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JsonString

Specifies the JSON formatted string that contains the web service definition that this cmdlet imports.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService

Notes

  • Keywords: azure, azurerm, arm, resource, management, manager, machine, machine learning, azureml