Skip to content

Commit

Permalink
fix: avm/ptn/ai-platform/baseline Fix compute name and VM username …
Browse files Browse the repository at this point in the history
…for tests
  • Loading branch information
cecheta committed Aug 14, 2024
1 parent 001a3e9 commit ac5885a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
12 changes: 6 additions & 6 deletions avm/ptn/ai-platform/baseline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
// Non-required parameters
virtualMachineConfiguration: {
adminPassword: '<adminPassword>'
adminUsername: '<adminUsername>'
adminUsername: 'localAdminUser'
}
}
}
Expand All @@ -133,7 +133,7 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
"virtualMachineConfiguration": {
"value": {
"adminPassword": "<adminPassword>",
"adminUsername": "<adminUsername>"
"adminUsername": "localAdminUser"
}
}
}
Expand Down Expand Up @@ -196,7 +196,7 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
}
virtualMachineConfiguration: {
adminPassword: '<adminPassword>'
adminUsername: '<adminUsername>'
adminUsername: 'localAdminUser'
enableAadLoginExtension: true
enableAzureMonitorAgent: true
enabled: true
Expand Down Expand Up @@ -335,7 +335,7 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
"virtualMachineConfiguration": {
"value": {
"adminPassword": "<adminPassword>",
"adminUsername": "<adminUsername>",
"adminUsername": "localAdminUser",
"enableAadLoginExtension": true,
"enableAzureMonitorAgent": true,
"enabled": true,
Expand Down Expand Up @@ -547,7 +547,7 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
}
virtualMachineConfiguration: {
adminPassword: '<adminPassword>'
adminUsername: '<adminUsername>'
adminUsername: 'localAdminUser'
enableAadLoginExtension: true
enableAzureMonitorAgent: true
maintenanceConfigurationResourceId: '<maintenanceConfigurationResourceId>'
Expand Down Expand Up @@ -597,7 +597,7 @@ module baseline 'br/public:avm/ptn/ai-platform/baseline:<version>' = {
"virtualMachineConfiguration": {
"value": {
"adminPassword": "<adminPassword>",
"adminUsername": "<adminUsername>",
"adminUsername": "localAdminUser",
"enableAadLoginExtension": true,
"enableAzureMonitorAgent": true,
"maintenanceConfigurationResourceId": "<maintenanceConfigurationResourceId>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ param baseTime string = utcNow('u')
@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '#_namePrefix_#'

@description('Generated. The username to leverage for the login.')
@secure()
param username string = uniqueString(newGuid())

@description('Generated. The password to leverage for the login.')
@secure()
param password string = newGuid()
Expand Down Expand Up @@ -54,7 +50,7 @@ module testDeployment '../../../main.bicep' = [
params: {
name: '${namePrefix}${serviceShort}${substring(uniqueString(baseTime), 0, 3)}'
virtualMachineConfiguration: {
adminUsername: username
adminUsername: 'localAdminUser'
adminPassword: password
}
}
Expand Down
8 changes: 2 additions & 6 deletions avm/ptn/ai-platform/baseline/tests/e2e/max/main.test.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ param baseTime string = utcNow('u')
@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '#_namePrefix_#'

@description('Generated. The username to leverage for the login.')
@secure()
param username string = uniqueString(newGuid())

@description('Generated. The password to leverage for the login.')
@secure()
param password string = newGuid()
Expand Down Expand Up @@ -115,7 +111,7 @@ module testDeployment '../../../main.bicep' = [
name: take('${namePrefix}-vm-${serviceShort}', 15)
zone: 0
size: 'Standard_DS1_v2'
adminUsername: username
adminUsername: 'localAdminUser'
adminPassword: password
nicConfigurationConfiguration: {
name: '${namePrefix}-nic-${serviceShort}'
Expand Down Expand Up @@ -150,7 +146,7 @@ module testDeployment '../../../main.bicep' = [
computes: [
{
computeType: 'ComputeInstance'
name: 'compute-${substring(uniqueString(baseTime), 0, 3)}'
name: 'compute-${substring(uniqueString(baseTime), 0, 3)}-${serviceShort}'
description: 'Default'
location: resourceLocation
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ param baseTime string = utcNow('u')
@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '#_namePrefix_#'

@description('Generated. The username to leverage for the login.')
@secure()
param username string = uniqueString(newGuid())

@description('Generated. The password to leverage for the login.')
@secure()
param password string = newGuid()
Expand Down Expand Up @@ -65,7 +61,7 @@ module testDeployment '../../../main.bicep' = [
params: {
name: '${namePrefix}${serviceShort}${substring(uniqueString(baseTime), 0, 3)}'
virtualMachineConfiguration: {
adminUsername: username
adminUsername: 'localAdminUser'
adminPassword: password
enableAadLoginExtension: true
enableAzureMonitorAgent: true
Expand Down

0 comments on commit ac5885a

Please sign in to comment.