你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Import-AzMlWebService
Imports a JSON object into a web service definition.
Syntax
Import-AzMlWebService
-InputFile <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Import-AzMlWebService
-JsonString <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Import-AzMlWebService cmdlet imports , specified either directly or in a referenced file, and creates a web service definition object that can be passed to the New-AzMlWebService cmdlet.
Examples
Example 1: Import from string
Import-AzMlWebService -JsonString $jsonDefinition
Example 2: Import from file path
Import-AzMlWebService -InputFile "C:\mlservice.json"
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputFile
The path to the file containing the web service definition to import.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JsonString
The JSON formatted string containing the web service definition to import.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService
Notes
Keywords: azure, azurerm, arm, resource, management, manager, machine, machine learning, azureml