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

Exports the web service definition object as a JSON formatted string.

Syntax

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

Description

Exports the definition object for the specified web servive as a JSON formatted string. You can return the string immediately or save it to a file.

Examples

-------------------------- Example 1: Export as string --------------------------

@{paragraph=PS C:\>}

Export-AzureRmMlWebService -WebService $svc -ToJsonString

-------------------------- Example 2: Export to file --------------------------

@{paragraph=PS C:\>}

Export-AzureRmMlWebService -WebService $svc -OutputFile "C:\mlservice.json"

Required Parameters

-OutputFile

The file path for exported definition.

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

Specifies that the definition will be exported as a JSON string.

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

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:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Do not ask for 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:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

None

Notes

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