-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated python to 3.12 Changed notebooks Added deployment scripts for AI Implemented Managed Identity Auth
- Loading branch information
1 parent
815de5b
commit 17c1ace
Showing
24 changed files
with
418 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
param name string | ||
param location string = resourceGroup().location | ||
param tags object = {} | ||
|
||
resource search 'Microsoft.Search/searchServices@2023-11-01' = { | ||
name: name | ||
location: location | ||
sku: { | ||
name: 'standard' | ||
} | ||
tags: tags | ||
properties: { | ||
authOptions: { | ||
aadOrApiKey: { | ||
aadAuthFailureMode: 'http401WithBearerChallenge' | ||
} | ||
} | ||
disableLocalAuth: false | ||
encryptionWithCmk: { | ||
enforcement: 'Unspecified' | ||
} | ||
hostingMode: 'Default' | ||
networkRuleSet: { | ||
ipRules: [] | ||
bypass: 'None' | ||
} | ||
partitionCount: 1 | ||
publicNetworkAccess: 'Enabled' | ||
replicaCount: 1 | ||
} | ||
} | ||
|
||
output searchName string = search.name | ||
output searchEndpoint string = 'https://${search.name}.search.windows.net' | ||
output searchAdminKey string = listAdminKeys(search.id, '2023-11-01').primaryKey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
param searchName string | ||
param principalId string | ||
|
||
// https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles | ||
// Search Index Data Reader | ||
var openAiUserRole = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '1407120a-92aa-4202-b7e9-c0e197c71c8f') | ||
|
||
resource searchAccess 'Microsoft.Authorization/roleAssignments@2022-04-01' = { | ||
scope: search // Use when specifying a scope that is different than the deployment scope | ||
name: guid(subscription().id, resourceGroup().id, principalId, openAiUserRole) | ||
properties: { | ||
roleDefinitionId: openAiUserRole | ||
principalType: 'ServicePrincipal' | ||
principalId: principalId | ||
} | ||
} | ||
|
||
resource search 'Microsoft.Search/searchServices@2023-11-01' existing = { | ||
name: searchName | ||
} |
Oops, something went wrong.