Export-​Azure​Rm​Ml​Web​Service

Exports a web service definition object as JSON.

Syntax

Export-AzureRmMlWebService
      -WebService <WebService>
      -OutputFile <String>
      [-Confirm]
      [-Force]
      [-WhatIf]
      [<CommonParameters>]
Export-AzureRmMlWebService
      -WebService <WebService>
      [-ToJsonString]
      [-Confirm]
      [-Force]
      [-WhatIf]
      [<CommonParameters>]

Description

The Export-AzureRmMlWebService cmdlet exports the given web service definition object to a JavaScript Object Notation (JSON) string that can be returned immediately or saved to a file.

Examples

Example 1: Export a web service definition as a string

PS C:\>Export-AzureRmMlWebService -WebService $SVC -ToJsonString

This command exports a web service definition as a string.

Example 2: Export a web service definition to a file

PS C:\>Export-AzureRmMlWebService -WebService $SVC -OutputFile "C:\mlservice.json"

This command exports a web service definition to a file named C:\mlservice.json.

Required Parameters

-OutputFile

Specifies the file path to export the definition to.

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

Indicates that the cmdlet exports the definition as a JSON string.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WebService

Specifies the web service definition object to be exported.

Type:WebService
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Notes

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