Get-​Azure​Rm​Ml​Web​Service​Keys

Gets the web service keys from a web service.

Syntax

Get-AzureRmMlWebServiceKeys
   -ResourceGroupName <String>
   -Name <String>
   [<CommonParameters>]
Get-AzureRmMlWebServiceKeys
   -MlWebService <WebService>
   [<CommonParameters>]

Description

The Get-AzureRmMlWebServiceKeys cmdlet gets the web service keys for an Azure Machine Learning web service runtime APIs.

To determine the resource group name of an existing web service, run the Get-AzureRmMlWebService cmdlet to display the web services in your subscription. Locate the web service, and then look at its web service ID. The name of the resource group is the fourth element in the ID, just after the resourceGroups element. In the following example the resource group name is Default-MachineLearning-SouthCentralUS.

Properties : Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebServicePropertiesForGraph Id : /subscriptions/\<subscription ID\>/resourceGroups/Default-MachineLearning-SouthCentralUS/providers/Microsoft.MachineLearning/webServices/Sample5TrainTest.2016.7.22.15.46.31.322 Name : Sample5TrainTest.2016.7.22.15.46.31.322 Location : South Central US Type : Microsoft.MachineLearning/webServices Tags : {}

Alternatively, to determine the resource group name of an existing web service, log on to the Microsoft Azure Machine Learning Web Services portal. Select the web service. The resource group name is the fifth element of the URL of the web service, just after the resourceGroups element. In the following example the resource group name is Default-MachineLearning-SouthCentralUS.

https://services.azureml.net/subscriptions/\<subcription ID\>/resourceGroups/Default-MachineLearning-SouthCentralUS/providers/Microsoft.MachineLearning/webServices/Sample5TrainTest.2016.7.22.15.46.31.322

Examples

Example 1: Get access keys for a web service specified by resource group and name

PS C:\>Get-AzureRmMlWebServiceKeys -ResourceGroupName "RG004" -Name "Webservice004"

This command gets access keys for the web service named Webservice004 that belongs to the resource group named RG004.

Example 2: Get access keys for a web service instance

PS C:\>Get-AzureRmMlWebServiceKeys -MlWebService $MlService

This command gets the access keys for the web service instance that is defined in the variable named $MlService.

Required Parameters

-MlWebService

Specifies the name of the web service for which this cmdlet gets access keys.

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

Specifies the name of the web service resource that this cmdlet gets the access keys.

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

Specifies the resource group that the web service belongs to.

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

Notes

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