Skip to content

Commit caac92a

Browse files
Merge pull request #691 from microsoft/dev-v3
fix: Dev to main MACAE V3
2 parents e2617fc + cf3f076 commit caac92a

File tree

5 files changed

+61
-55
lines changed

5 files changed

+61
-55
lines changed

azure.yaml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,24 @@ hooks:
4040
Yellow='\033[1;33m'
4141
NC='\033[0m'
4242
43-
echo ""
44-
echo "${Yellow}==============================================================="
45-
echo "${Green} POST-DEPLOYMENT STEPS (Bash) "
46-
echo "${Yellow}===============================================================${NC}"
47-
echo ""
43+
printf "\n"
44+
printf "${Yellow}===============================================================\n"
45+
printf "${Green} POST-DEPLOYMENT STEPS (Bash)\n"
46+
printf "${Yellow}===============================================================${NC}\n\n"
4847
49-
echo " STEP 1: Upload Team Configurations to Cosmos DB"
50-
echo " 👉 Run the following command in Bash:"
51-
echo " ${Blue}bash infra/scripts/upload_team_config.sh${NC}"
52-
echo ""
48+
printf " STEP 1: Upload Team Configurations to Cosmos DB\n"
49+
printf " 👉 Run the following command in Bash:\n"
50+
printf " ${Blue}bash infra/scripts/upload_team_config.sh${NC}\n\n"
5351
54-
echo " STEP 2: Index Sample Data into Azure Search"
55-
echo " 👉 Run the following command in Bash:"
56-
echo " ${Blue}bash infra/scripts/process_sample_data.sh${NC}"
57-
echo ""
52+
printf " STEP 2: Index Sample Data into Azure Search\n"
53+
printf " 👉 Run the following command in Bash:\n"
54+
printf " ${Blue}bash infra/scripts/process_sample_data.sh${NC}\n\n"
5855
59-
echo "💡 Alternatively, you can run above BOTH steps together using:"
60-
echo " ${Blue}bash infra/scripts/team_config_and_data.sh${NC}"
61-
echo ""
56+
printf "💡 Alternatively, you can run above BOTH steps together using:\n"
57+
printf " ${Blue}bash infra/scripts/team_config_and_data.sh${NC}\n\n"
6258
63-
echo "🌐 Access your deployed Frontend application at:"
64-
echo " ${Blue}https://$webSiteDefaultHostname${NC}"
65-
echo ""
59+
printf "🌐 Access your deployed Frontend application at:\n"
60+
printf " ${Blue}https://%s${NC}\n\n" "$webSiteDefaultHostname"
61+
6662
shell: sh
6763
interactive: true

azure_custom.yaml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,28 +77,23 @@ hooks:
7777
Yellow='\033[1;33m'
7878
NC='\033[0m'
7979
80-
echo ""
81-
echo "${Yellow}==============================================================="
82-
echo "${Green} POST-DEPLOYMENT STEPS (Bash) "
83-
echo "${Yellow}===============================================================${NC}"
84-
echo ""
80+
printf "\n"
81+
printf "${Yellow}===============================================================\n"
82+
printf "${Green} POST-DEPLOYMENT STEPS (Bash)\n"
83+
printf "${Yellow}===============================================================${NC}\n\n"
8584
86-
echo " STEP 1: Upload Team Configurations to Cosmos DB"
87-
echo " 👉 Run the following command in Bash:"
88-
echo " ${Blue}bash infra/scripts/upload_team_config.sh${NC}"
89-
echo ""
85+
printf " STEP 1: Upload Team Configurations to Cosmos DB\n"
86+
printf " 👉 Run the following command in Bash:\n"
87+
printf " ${Blue}bash infra/scripts/upload_team_config.sh${NC}\n\n"
9088
91-
echo " STEP 2: Index Sample Data into Azure Search"
92-
echo " 👉 Run the following command in Bash:"
93-
echo " ${Blue}bash infra/scripts/process_sample_data.sh${NC}"
94-
echo ""
89+
printf " STEP 2: Index Sample Data into Azure Search\n"
90+
printf " 👉 Run the following command in Bash:\n"
91+
printf " ${Blue}bash infra/scripts/process_sample_data.sh${NC}\n\n"
9592
96-
echo "💡 Alternatively, you can run above BOTH steps together using:"
97-
echo " ${Blue}bash infra/scripts/team_config_and_data.sh${NC}"
98-
echo ""
93+
printf "💡 Alternatively, you can run above BOTH steps together using:\n"
94+
printf " ${Blue}bash infra/scripts/team_config_and_data.sh${NC}\n\n"
9995
100-
echo "🌐 Access your deployed Frontend application at:"
101-
echo " ${Blue}https://$webSiteDefaultHostname${NC}"
102-
echo ""
96+
printf "🌐 Access your deployed Frontend application at:\n"
97+
printf " ${Blue}https://%s${NC}\n\n" "$webSiteDefaultHostname"
10398
shell: sh
10499
interactive: true

infra/main.bicep

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ param enablePrivateNetworking bool = false
123123

124124
@secure()
125125
@description('Optional. The user name for the administrator account of the virtual machine. Allows to customize credentials if `enablePrivateNetworking` is set to true.')
126-
param virtualMachineAdminUsername string = take(newGuid(), 20)
126+
param virtualMachineAdminUsername string?
127127

128128
@description('Optional. The password for the administrator account of the virtual machine. Allows to customize credentials if `enablePrivateNetworking` is set to true.')
129129
@secure()
130-
param virtualMachineAdminPassword string = newGuid()
130+
param virtualMachineAdminPassword string?
131131

132132
// These parameters are changed for testing - please reset as part of publication
133133

@@ -608,8 +608,8 @@ module virtualMachine 'br/public:avm/res/compute/virtual-machine:0.17.0' = if (e
608608
computerName: take(virtualMachineResourceName, 15)
609609
osType: 'Windows'
610610
vmSize: virtualMachineSize
611-
adminUsername: virtualMachineAdminUsername
612-
adminPassword: virtualMachineAdminPassword
611+
adminUsername: virtualMachineAdminUsername ?? 'JumpboxAdminUser'
612+
adminPassword: virtualMachineAdminPassword ?? 'JumpboxAdminP@ssw0rd1234!'
613613
patchMode: 'AutomaticByPlatform'
614614
bypassPlatformSafetyChecksOnUserSchedule: true
615615
maintenanceConfigurationResourceId: maintenanceConfiguration!.outputs.resourceId
@@ -1339,8 +1339,19 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = {
13391339
name: 'AZURE_AI_MODEL_DEPLOYMENT_NAME'
13401340
value: aiFoundryAiServicesModelDeployment.name
13411341
}
1342+
{
1343+
name: 'AZURE_BASIC_LOGGING_LEVEL'
1344+
value: 'INFO'
1345+
}
1346+
{
1347+
name: 'AZURE_PACKAGE_LOGGING_LEVEL'
1348+
value: 'WARNING'
1349+
}
1350+
{
1351+
name: 'AZURE_LOGGING_PACKAGES'
1352+
value: ''
1353+
}
13421354
]
1343-
13441355
}
13451356
]
13461357
secrets: [
@@ -1500,9 +1511,6 @@ module webSite 'modules/web-sites.bicep' = {
15001511
WEBSITES_CONTAINER_START_TIME_LIMIT: '1800' // 30 minutes, adjust as needed
15011512
BACKEND_API_URL: 'https://${containerApp.outputs.fqdn}'
15021513
AUTH_ENABLED: 'false'
1503-
AZURE_BASIC_LOGGING_LEVEL: 'INFO'
1504-
AZURE_PACKAGE_LOGGING_LEVEL: 'WARNING'
1505-
AZURE_LOGGING_PACKAGES: ''
15061514
}
15071515
// WAF aligned configuration for Monitoring
15081516
applicationInsightResourceId: enableMonitoring ? applicationInsights!.outputs.resourceId : null

infra/main_custom.bicep

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,11 @@ param enablePrivateNetworking bool = false
124124

125125
@secure()
126126
@description('Optional. The user name for the administrator account of the virtual machine. Allows to customize credentials if `enablePrivateNetworking` is set to true.')
127-
param virtualMachineAdminUsername string = take(newGuid(), 20)
127+
param virtualMachineAdminUsername string?
128128

129129
@description('Optional. The password for the administrator account of the virtual machine. Allows to customize credentials if `enablePrivateNetworking` is set to true.')
130130
@secure()
131-
param virtualMachineAdminPassword string = newGuid()
132-
131+
param virtualMachineAdminPassword string?
133132
// These parameters are changed for testing - please reset as part of publication
134133

135134
@description('Optional. The Container Registry hostname where the docker images for the backend are located.')
@@ -923,8 +922,8 @@ module virtualMachine 'br/public:avm/res/compute/virtual-machine:0.17.0' = if (e
923922
computerName: take(virtualMachineResourceName, 15)
924923
osType: 'Windows'
925924
vmSize: virtualMachineSize
926-
adminUsername: virtualMachineAdminUsername
927-
adminPassword: virtualMachineAdminPassword
925+
adminUsername: virtualMachineAdminUsername ?? 'JumpboxAdminUser'
926+
adminPassword: virtualMachineAdminPassword ?? 'JumpboxAdminP@ssw0rd1234!'
928927
patchMode: 'AutomaticByPlatform'
929928
bypassPlatformSafetyChecksOnUserSchedule: true
930929
maintenanceConfigurationResourceId: maintenanceConfiguration!.outputs.resourceId
@@ -1687,6 +1686,18 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = {
16871686
name: 'AZURE_AI_MODEL_DEPLOYMENT_NAME'
16881687
value: aiFoundryAiServicesModelDeployment.name
16891688
}
1689+
{
1690+
name: 'AZURE_BASIC_LOGGING_LEVEL'
1691+
value: 'INFO'
1692+
}
1693+
{
1694+
name: 'AZURE_PACKAGE_LOGGING_LEVEL'
1695+
value: 'WARNING'
1696+
}
1697+
{
1698+
name: 'AZURE_LOGGING_PACKAGES'
1699+
value: ''
1700+
}
16901701
]
16911702
}
16921703
]
@@ -1856,9 +1867,6 @@ module webSite 'modules/web-sites.bicep' = {
18561867
//WEBSITES_CONTAINER_START_TIME_LIMIT: '1800' // 30 minutes, adjust as needed
18571868
BACKEND_API_URL: 'https://${containerApp.outputs.fqdn}'
18581869
AUTH_ENABLED: 'false'
1859-
AZURE_BASIC_LOGGING_LEVEL: 'INFO'
1860-
AZURE_PACKAGE_LOGGING_LEVEL: 'WARNING'
1861-
AZURE_LOGGING_PACKAGES: ''
18621870
ENABLE_ORYX_BUILD: 'True'
18631871
}
18641872
// WAF aligned configuration for Monitoring

src/backend/common/utils/utils_kernel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from v3.config.agent_registry import agent_registry
1111

12-
logging.basicConfig(level=logging.INFO)
1312

1413
# Cache for agent instances by session
1514
agent_instances: Dict[str, Dict[str, Any]] = {}

0 commit comments

Comments
 (0)