Get-AzSearchQueryKey
Gets query key(s) of the Azure AI Search service.
Syntax
ResourceNameParameterSet (Default)
Get-AzSearchQueryKey
[-ResourceGroupName] <String>
[-ServiceName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ParentObjectParameterSet
Get-AzSearchQueryKey
[-ParentObject] <PSSearchService>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ParentResourceIdParameterSet
Get-AzSearchQueryKey
[-ParentResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzSearchQueryKey cmdlet gets query key(s) of the Azure AI Search service.
Examples
Example 1
Get-AzSearchQueryKey -ResourceGroupName "TestAzureSearchPsGroup" -ServiceName "pstestazuresearch01"
Name Key
---- ---
896AA09C167541072D404E1BE0442CE9
The example gets all query key(s) of the Azure AI Search service.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ParentObject
Azure AI Search Service Input Object.
Parameter properties
Type: PSSearchService
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ParentObjectParameterSet
Position: 0
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-ParentResourceId
Azure AI Search Service Resource Id.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ParentResourceIdParameterSet
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ResourceGroupName
Resource Group name.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResourceNameParameterSet
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ServiceName
Azure AI Search Service name.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResourceNameParameterSet
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs