Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
215d90e
Upgrade service SDK to support AAD auth
damonbarry Dec 16, 2025
ae636ba
Upgrade service SDK dependency in LeafDevice test app
damonbarry Dec 16, 2025
bf9af43
Fix StyleCop warnings
damonbarry Dec 16, 2025
16c86fe
Invoke IotEdgeQuickstart inside AzureCLI task for AAD auth to IoT Hub
damonbarry Dec 17, 2025
0c378b8
Fix template expression in YAML
damonbarry Dec 17, 2025
badd09b
Fix argument to connectivity-deploy.yaml
damonbarry Dec 17, 2025
dc6090f
Quote values for consistency
damonbarry Dec 17, 2025
4fa0342
Fix reference to dotted template parameter
damonbarry Dec 17, 2025
bdb3213
Try an app that works from my desktop
damonbarry Dec 17, 2025
1c6e843
See if a debug build will give us a better call stack
damonbarry Dec 17, 2025
4142469
See Azure Identity logs
damonbarry Dec 17, 2025
0d9519a
Add usings to make the sample compile
damonbarry Dec 17, 2025
8285055
Use Azure CLI credentials to authenticate to IoT hub
damonbarry Dec 17, 2025
6838049
Use AzureCliCredential in IotEdgeQuickstart and LeafDevice
damonbarry Dec 17, 2025
4542313
Revert "Use Azure CLI credentials to authenticate to IoT hub"
damonbarry Dec 17, 2025
b359317
Revert "Add usings to make the sample compile"
damonbarry Dec 17, 2025
226ec8a
Revert "See Azure Identity logs"
damonbarry Dec 17, 2025
6bf67f3
Revert "See if a debug build will give us a better call stack"
damonbarry Dec 17, 2025
9aa5e01
Revert "Try an app that works from my desktop"
damonbarry Dec 17, 2025
b74f6a3
Use AAD auth in test modules for connectivity
damonbarry Dec 18, 2025
3d4e65d
Use EnvironmentCredential instead of AzureCliCredential
damonbarry Dec 19, 2025
7843290
Add missed error handling
damonbarry Dec 19, 2025
ff812d2
Dump current account info
damonbarry Dec 19, 2025
ee5ca65
Export variables needed by EnvironmentCredential
damonbarry Dec 19, 2025
fd71d45
Revert "Dump current account info"
damonbarry Dec 19, 2025
75ad86d
Use account info from task
damonbarry Dec 19, 2025
6caeeee
Use the right variable name for the token type
damonbarry Dec 19, 2025
0aa8c9d
Dump some more info to the logs
damonbarry Dec 19, 2025
855e125
Revert "Dump some more info to the logs"
damonbarry Dec 19, 2025
f109bf2
Use WorkloadIdentityCredential for modules
damonbarry Dec 19, 2025
4cac07f
Use AAD auth to read event hubs (INCOMPLETE)
damonbarry Jan 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions builds/e2e/connectivity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ jobs:
# Deploy connectivity test
- template: templates/connectivity-deploy.yaml
parameters:
connection.arm: '$(azure.subscription)'
release.label: 'ct$(agent.group)'
test.buildNumber: '$(Build.BuildNumber)'
test.buildId: '$(Build.BuildId)'
Expand All @@ -224,7 +225,7 @@ jobs:
container.registry: '$(cr.server)'
container.registry.username: '$(cr.username)'
container.registry.password: '$(cr.token)'
iotHub.connectionString: '$(IotHub-ConnStr)'
iotHub.hostName: '$(iothub.hostname)'
eventHub.connectionString: '$(IotHub-EventHubConnStr)'
deploymentFileName: '$(deploymentFileName)'
upstream.protocol: '$(upstream.protocol)'
Expand Down Expand Up @@ -407,6 +408,7 @@ jobs:
# Deploy connectivity test
- template: templates/connectivity-deploy.yaml
parameters:
connection.arm: '$(azure.subscription)'
release.label: 'ct$(agent.group)'
test.buildNumber: '$(Build.BuildNumber)'
test.buildId: '$(Build.BuildId)'
Expand All @@ -420,7 +422,7 @@ jobs:
container.registry: '$(cr.server)'
container.registry.username: '$(cr.username)'
container.registry.password: '$(cr.token)'
iotHub.connectionString: '$(EdgeConnectivityTestHubARM32ConnString)'
iotHub.hostName: '$(iothub.hostname)'
eventHub.connectionString: '$(EdgeConnectivityEventHubARM32ConnString)'
deploymentFileName: '$(deploymentFileName)'
upstream.protocol: '$(upstream.protocol)'
Expand Down
29 changes: 19 additions & 10 deletions builds/e2e/templates/connectivity-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
parameters:
connection.arm: ''
release.label: ''
test.buildNumber: ''
test.buildId: ''
Expand All @@ -13,8 +14,9 @@ parameters:
container.registry.username: ''
container.registry.password: ''
testResultCoordinator.blobStorageAccountUriWithSasToken: ''
iotHub.connectionString: ''
eventHub.connectionString: ''
iotHub.hostName: ''
eventHub.namespace: ''
eventHub.name: ''
upstream.protocol: ''
networkController.description: ''
networkController.frequencies: ''
Expand Down Expand Up @@ -86,12 +88,17 @@ steps:
echo "##vso[task.setvariable variable=DeviceCaKey]$(pwd)/private/iot-edge-device-ca-ConnectivityTestDeviceCA.key.pem"
fi

- task: Bash@3
- task: AzureCLI@2
condition: and(succeeded(), eq(variables['run.flag'], 1))
displayName: 'Run Connectivity Deployment'
inputs:
targetType: inline
script: |
azureSubscription: ${{ parameters['connection.arm'] }}
addSpnToEnvironment: true
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
set -euo pipefail

. $(Agent.BuildDirectory)/../artifacts/${{ parameters['images.artifact.name'] }}/artifactInfo.txt
chmod +x ${{ parameters['build.repo.path'] }}/scripts/linux/trcE2ETest.sh
testName="Connectivity"
Expand All @@ -116,8 +123,9 @@ steps:
-containerRegistry "${{ parameters['container.registry'] }}" \
-containerRegistryUsername "${{ parameters['container.registry.username'] }}" \
-containerRegistryPassword "${{ parameters['container.registry.password'] }}" \
-iotHubConnectionString "${{ parameters['iotHub.connectionString'] }}" \
-eventHubConnectionString "${{ parameters['eventHub.connectionString'] }}" \
-iotHubHostName "${{ parameters['iotHub.hostName'] }}" \
-eventHubNamespace "${{ parameters['eventHub.namespace'] }}" \
-eventHubName "${{ parameters['eventHub.name'] }}" \
-upstreamProtocol "${{ parameters['upstream.protocol'] }}" \
-testDuration "${{ parameters['testDuration'] }}" \
-networkControllerFrequency "${{ parameters['networkController.frequencies'] }}" \
Expand All @@ -142,14 +150,15 @@ steps:
-repoPath "${{ parameters['build.repo.path'] }}" \
-topology "${{ parameters['topology'] }}" \
-waitForTestComplete \
-cleanAll
-cleanAll \
-tenantId "$tenantId" \
-clientId "$servicePrincipalId" \
-clientSecret "$idToken"

scriptExitCode=$?
echo "script exit code=$scriptExitCode"
exit $scriptExitCode

workingDirectory: "$(Agent.BuildDirectory)/.."

env:
E2E_nestedEdgeTest: $(nestededge)
E2E_trustedCaCerts: $(TrustBundle)
Expand Down
Loading
Loading