Skip to content

Commit

Permalink
fix: pass vault as unique name and send as output
Browse files Browse the repository at this point in the history
  • Loading branch information
alicia-td authored Jul 18, 2024
1 parent 6c8f5b1 commit 4f11c1c
Showing 1 changed file with 25 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,34 +88,28 @@ var registry = 'teradata'
var workspaceRepository = 'ai-unlimited-workspaces'
var workspaceSchedulerRepository = 'ai-unlimited-scheduler'

var cloudInitData = base64(
format(
loadTextContent('../../../scripts/ai-unlimited.cloudinit.yaml'),
base64(
format(
loadTextContent('../../../scripts/ai-unlimited.service'),
registry,
workspaceRepository,
AiUnlimitedVersion,
AiUnlimitedHttpPort,
AiUnlimitedGrpcPort,
subscription().subscriptionId,
subscription().tenantId,
'--network-alias ai-unlimited'
)
),
base64(
format(
loadTextContent('../../../scripts/ai-unlimited-scheduler.service'),
registry,
workspaceSchedulerRepository,
AiUnlimitedSchedulerVersion,
// AiUnlimitedSchedulerGrpcPort,
AiUnlimitedSchedulerHttpPort
)
)
)
)
var cloudInitData = base64(format(
loadTextContent('../../../scripts/ai-unlimited.cloudinit.yaml'),
base64(format(
loadTextContent('../../../scripts/ai-unlimited.service'),
registry,
workspaceRepository,
AiUnlimitedVersion,
AiUnlimitedHttpPort,
AiUnlimitedGrpcPort,
subscription().subscriptionId,
subscription().tenantId,
'--network-alias ai-unlimited'
)),
base64(format(
loadTextContent('../../../scripts/ai-unlimited-scheduler.service'),
registry,
workspaceSchedulerRepository,
AiUnlimitedSchedulerVersion,
// AiUnlimitedSchedulerGrpcPort,
AiUnlimitedSchedulerHttpPort
))
))

resource rg 'Microsoft.Resources/resourceGroups@2022-09-01' existing = {
name: ResourceGroupName
Expand Down Expand Up @@ -146,7 +140,7 @@ module vaultAccessPolicy '../modules/vault/access-policy.bicep' = if (UseKeyVaul
scope: rg
name: 'vault-access-policy'
params: {
vaultName: AiUnlimitedName
vaultName: vault.outputs.name
accessPolicy: {
tenantId: subscription().tenantId
objectId: aiUnlimited.outputs.PrincipleId
Expand Down Expand Up @@ -231,4 +225,5 @@ output AiUnlimitedPrivateHttpAccess string = 'http://${aiUnlimited.outputs.Priva
output AiUnlimitedPublicGrpcAccess string = 'http://${aiUnlimited.outputs.PublicIP}:${AiUnlimitedGrpcPort}'
output AiUnlimitedPrivateGrpcAccess string = 'http://${aiUnlimited.outputs.PrivateIP}:${AiUnlimitedGrpcPort}'
output sshCommand string = 'ssh azureuser@${aiUnlimited.outputs.PublicIP}'
output SecurityGroup string = firewall.outputs.Id
output KeyVaultName string = (UseKeyVault == 'New') ? vault.outputs.name : ''
output NetworkSecurityGroupId string = firewall.outputs.Id

0 comments on commit 4f11c1c

Please sign in to comment.