Skip to content

Commit 6180001

Browse files
reverted codes
1 parent 9fb1156 commit 6180001

5 files changed

Lines changed: 12 additions & 55 deletions

File tree

infra/old/deploy_app_service.bicep

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ resource HostingPlan 'Microsoft.Web/serverfarms@2020-06-01' = {
158158
name: hostingPlanSku
159159
}
160160
properties: {
161-
// name: hostingPlanName
161+
name: hostingPlanName
162162
reserved: true
163163
}
164164
kind: 'linux'
@@ -412,11 +412,11 @@ resource aiUserRoleDefinitionFoundry 'Microsoft.Authorization/roleDefinitions@20
412412
// }
413413
// }
414414

415-
// @description('This is the built-in Azure AI User role.')
416-
// resource aiUserRoleDefinitionFoundryProject 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = {
417-
// scope: aiFoundryProject
418-
// name: '53ca6127-db72-4b80-b1b0-d745d6d5456d'
419-
// }
415+
@description('This is the built-in Azure AI User role.')
416+
resource aiUserRoleDefinitionFoundryProject 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = {
417+
scope: aiFoundryProject
418+
name: '53ca6127-db72-4b80-b1b0-d745d6d5456d'
419+
}
420420

421421
// resource aiUserRoleAssignmentFoundryProject 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
422422
// name: guid(Website.id, aiFoundryProject.id, aiUserRoleDefinitionFoundryProject.id)

infra/old/deploy_cosmos_db.bicep

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// @minLength(3)
2-
// @maxLength(15)
3-
// @description('Required. Contains Solution Name')
4-
// param solutionName string
1+
@minLength(3)
2+
@maxLength(15)
3+
@description('Required. Contains Solution Name')
4+
param solutionName string
55

66
@minLength(3)
77
@maxLength(20)

infra/old/deploy_foundry_role_assignment.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ resource roleAssignmentToFoundry 'Microsoft.Authorization/roleAssignments@2022-0
6060
output aiServicesPrincipalId string = aiServices.identity.principalId
6161

6262
@description('AI Project Principle ID')
63-
output aiProjectPrincipalId string = empty(aiProjectName) ? '' : aiProject!.identity.principalId
63+
output aiProjectPrincipalId string = !empty(aiProjectName) ? aiProject.identity.principalId : ''

infra/old/deploy_storage_account.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
112112
}
113113

114114
var storageAccountKeys = listKeys(storageAccounts_resource.id, '2021-04-01')
115-
var storageAccountString = 'DefaultEndpointsProtocol=https;AccountName=${storageAccounts_resource.name};AccountKey=${storageAccounts_resource.listKeys().keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
115+
// var storageAccountString = 'DefaultEndpointsProtocol=https;AccountName=${storageAccounts_resource.name};AccountKey=${storageAccounts_resource.listKeys().keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
116116

117117
resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = {
118118
name: keyVaultName

infra/old/keyVaultExport.bicep

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)