你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzMlWebServiceKey
Retrieves the web service's keys.
Syntax
Get-AzMlWebServiceKey
-ResourceGroupName <String>
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzMlWebServiceKey
-MlWebService <WebService>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Gets the access keys for the Azure Machine Learning web service's runtime APIs.
Examples
Example 1 - Get the keys for a web service specified by resource group and name
Get-AzMlWebServiceKey -ResourceGroupName "myresourcegroup" -Name "mywebservicename"
Example 2 - Get keys for web service instance
Get-AzMlWebServiceKey -MlWebService $mlService
$mlService is an object of type Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService.
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 |
-MlWebService
The name of the web service for which the access keys are retrieved.
Type: | Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
The name of the web service for which the access keys are retrieved.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The resource group for the web service.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebService
Outputs
Microsoft.Azure.Management.MachineLearning.WebServices.Models.WebServiceKeys
Notes
Keywords: azure, azurerm, arm, resource, management, manager, machine, machine learning, azureml