This file contains hidden or 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"functionAppName": { | |
"type": "string", | |
"defaultValue": "[format('func-{0}', uniqueString(resourceGroup().id))]", | |
"metadata": { | |
"description": "The name of the Azure Function app." | |
} |
This file contains hidden or 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"roleGuid": { | |
"type": "string", | |
"defaultValue": "[guid(deployment().name)]" | |
} | |
}, | |
"resources": [ |
This file contains hidden or 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
# Validation of GPT4-vision and AI Vision indexer | |
# Azure Open AI configuration | |
$AzureOpenAIEndpoint = "" | |
$VisionDeploymentName = "" | |
# Storage Configuration | |
$StorageAccountEndpoint = "" |
This file contains hidden or 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
# Azure Open AI configuration | |
$AzureOpenAIEndpoint = "" | |
$DeploymentName = "" | |
$EmbeddingDeploymentName = "" | |
$Prompt = "" | |
# Azure AI search configuraton |
This file contains hidden or 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
function New-AzOpenAIVisionPrompt { | |
<# | |
- Kristian Nese, SWAT team | |
Quick function to validate 1) access to Azure Open AI instance (GTP4), and 2) ability to generate a prompt, with 3) reference to an image URL. | |
Note: for this to work, the caller ID must have appropriate permissions to the Azure Open AI instance via data plane RBAC. | |
This is brought to you by the courtesy of Kristian, who is a true believer of Leo Messi. | |
.Synopsis | |
Prompt Azure Open AI w Vision using PowerShell function | |
.Example |
This file contains hidden or 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
function New-AzOpenAIPrompt { | |
<# | |
10/10/2023 - Kristian Nese, SWAT team | |
Quick function to validate 1) access to Azure Open AI instance (GTP4), and 2) ability to generate a prompt. | |
Note: for this to work, the caller ID must have appropriate permissions to the Azure Open AI instance via data plane RBAC. | |
This is brought to you by the courtesy of Kristian, who is a true believer of Leo Messi. | |
.Synopsis | |
Prompt Azure Open AI using PowerShell function | |
.Example |
This file contains hidden or 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"rgName": { | |
"type": "string", | |
"metadata": { | |
"description": "Provide name for resource group" | |
} | |
}, |
This file contains hidden or 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"vNetRgName": { | |
"type": "string", | |
"metadata": { | |
"description": "Provide a name for the resource group that will contain the virtual network." | |
} | |
}, |
This file contains hidden or 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"addressPrefix": { | |
"type": "string", | |
"defaultValue": "192.168.0.0/16" | |
}, | |
"vnetName": { | |
"type": "string", |
This file contains hidden or 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": {}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Authorization/policyDefinitions", | |
"apiVersion": "2021-06-01", | |
"name": "Diag-AzAc-EH", | |
"properties": { |
NewerOlder