< Back

Export-AzureRmMlWebService

Tue Jan 29, 2019 9:52 pm

NAME Export-AzureRmMlWebService



SYNOPSIS

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





SYNTAX

Export-AzureRmMlWebService [-DefaultProfile <IAzureContextContainer>] [-Force] -OutputFile <String> -WebService <WebService> [-Confirm] [-WhatIf]

[<CommonParameters>]



Export-AzureRmMlWebService [-DefaultProfile <IAzureContextContainer>] [-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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Force [<SwitchParameter>]

Do not ask for confirmation.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-OutputFile <String>

The file path for exported definition.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ToJsonString [<SwitchParameter>]

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



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WebService <WebService>

The web service definition object to be exported.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

WebService

Parameter 'WebService' accepts value of type 'WebService' from the pipeline





OUTPUTS

None







NOTES





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



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



Export-AzureRmMlWebService -WebService $svc -ToJsonString









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



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











RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... webservice