-
Couldn't load subscription status.
- Fork 376
fix: Fix to avoid task creation for violent and meaning less prompts when deployment reuse existing AI Foundry Project. #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6fe8692
Added condition for Azure openAI and Azure Ai Project name selection …
NirajC-Microsoft 72f412e
remove type from existingAiFounryName
NirajC-Microsoft b566ffa
Private Connection should get used only for deployment which is creat…
NirajC-Microsoft 2c63e5b
refactor: Code clean up for roleassignments
Prajwal-Microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -697,7 +697,9 @@ module privateDnsZonesAiServices 'br/public:avm/res/network/private-dns-zone:0.7 | |
| ] | ||
|
|
||
| // NOTE: Required version 'Microsoft.CognitiveServices/accounts@2024-04-01-preview' not available in AVM | ||
| var aiFoundryAiServicesResourceName = aiFoundryAiServicesConfiguration.?name ?? 'aisa-${solutionPrefix}' | ||
| var useExistingFoundryProject = !empty(existingFoundryProjectResourceId) | ||
| var existingAiFounryName = useExistingFoundryProject?split( existingFoundryProjectResourceId,'/')[8]:'' | ||
| var aiFoundryAiServicesResourceName = useExistingFoundryProject? existingAiFounryName : aiFoundryAiServicesConfiguration.?name ?? 'aisa-${solutionPrefix}' | ||
| var aiFoundryAIservicesEnabled = aiFoundryAiServicesConfiguration.?enabled ?? true | ||
| var aiFoundryAiServicesModelDeployment = { | ||
| format: 'OpenAI' | ||
|
|
@@ -743,8 +745,8 @@ module aiFoundryAiServices 'modules/account/main.bicep' = if (aiFoundryAIservice | |
| privateEndpoints: virtualNetworkEnabled | ||
| ? ([ | ||
| { | ||
| name: 'pep-${aiFoundryAiServicesResourceName}' | ||
| customNetworkInterfaceName: 'nic-${aiFoundryAiServicesResourceName}' | ||
| name: 'pep-${aiFoundryAiServicesConfiguration.?name ?? 'aisa-${solutionPrefix}'}' | ||
|
||
| customNetworkInterfaceName: 'nic-${aiFoundryAiServicesConfiguration.?name ?? 'aisa-${solutionPrefix}'}' | ||
| subnetResourceId: aiFoundryAiServicesConfiguration.?subnetResourceId ?? virtualNetwork.outputs.subnetResourceIds[0] | ||
| privateDnsZoneGroup: { | ||
| privateDnsZoneGroupConfigs: map(objectKeys(openAiPrivateDnsZones), zone => { | ||
|
|
@@ -775,7 +777,8 @@ module aiFoundryAiServices 'modules/account/main.bicep' = if (aiFoundryAIservice | |
|
|
||
| // AI Foundry: AI Project | ||
| // WAF best practices for Open AI: https://learn.microsoft.com/en-us/azure/well-architected/service-guides/azure-openai | ||
| var aiFoundryAiProjectName = aiFoundryAiProjectConfiguration.?name ?? 'aifp-${solutionPrefix}' | ||
| var existingAiFounryProjectName = useExistingFoundryProject?last(split( existingFoundryProjectResourceId,'/')): '' | ||
| var aiFoundryAiProjectName = useExistingFoundryProject? existingAiFounryProjectName : aiFoundryAiProjectConfiguration.?name ?? 'aifp-${solutionPrefix}' | ||
|
|
||
| resource aiUser 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = { | ||
| name: '53ca6127-db72-4b80-b1b0-d745d6d5456d' | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.