New-AzSearchService

Creates an Azure Cognitive Search service.

Syntax

New-AzSearchService
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-Sku] <PSSkuName>
   [-Location] <String>
   [-PartitionCount <Int32>]
   [-ReplicaCount <Int32>]
   [-HostingMode <PSHostingMode>]
   [-PublicNetworkAccess <PSPublicNetworkAccess>]
   [-IdentityType <PSIdentityType>]
   [-IPRuleList <PSIpRule[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-AzSearchService cmdlet creates an Azure Cognitive Search service with specified parameters.

Examples

Example 1

PS C:\> New-AzSearchService -ResourceGroupName "TestAzureSearchPsGroup" -Name "pstestazuresearch01" -Sku "Standard" -Location "West US" -PartitionCount 1 -ReplicaCount 1 -HostingMode Default -Force


ResourceGroupName : TestAzureSearchPsGroup
Name              : pstestazuresearch01
Id                : /subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/TestAzureSearchPsGroup/providers/Microsoft.Search/searchServices/pstestazuresearch01
Location          : West US
Sku               : Standard
ReplicaCount      : 1
PartitionCount    : 1
HostingMode       : Default
Tags              :

The command creates an Azure Cognitive Search service.

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
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HostingMode

Azure Cognitive Search Service hosting mode.

Type:Nullable<T>[PSHostingMode]
Accepted values:Default, HighDensity
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IdentityType

(Optional) Azure Cognitive Search Service Identity (None/SystemAssigned)

Type:Nullable<T>[PSIdentityType]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IPRuleList

(Optional) Azure Cognitive Search Service IP rules

Type:PSIpRule[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Location

Azure Cognitive Search Service location.

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Azure Cognitive Search Service name.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PartitionCount

Azure Cognitive Search Service partition count.

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PublicNetworkAccess

(Optional) Azure Cognitive Search Service public network access (Enabled/Disabled)

Type:Nullable<T>[PSPublicNetworkAccess]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReplicaCount

Azure Cognitive Search Service replica count.

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Resource Group name.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Sku

Azure Cognitive Search Service Sku.

Type:PSSkuName
Accepted values:Free, Basic, Standard, Standard2, Standard3
Position:2
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

Inputs

None

Outputs

PSSearchService