Skip to content

Commit

Permalink
[Confidential Ledger] Fix the test pipeline failure (#33585)
Browse files Browse the repository at this point in the history
# Description

This PR fixes the failing test pipeline for the Azure Confidential Ledger service.
  • Loading branch information
mniamme committed Feb 17, 2023
1 parent 77d4aad commit f9fd6f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,53 @@
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"ledgerName": {
"BaseName": {
"type": "string",
"metadata": {
"description": "Ledger Name"
},
"minLength": 3,
"maxLength": 24
}
},
"principalId": {
"TestApplicationId": {
"type": "string",
"metadata": {
"description": "Oid of the user"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"defaultValue": "eastus",
"metadata": {
"description": "Location for all resources."
"description": "Location of the ledger."
}
}
},
"functions": [],
"variables": {},
"resources": [{
"name": "[parameters('ledgerName')]",
"name": "[parameters('BaseName')]",
"type": "Microsoft.ConfidentialLedger/ledgers",
"ledgerUri": "[concat('https://', parameters('ledgerName'), '.confidential-ledger.azure.com')]",
"apiVersion": "2020-12-01-preview",
"location": "[parameters('location')]",
"properties": {
"ledgerType": "Public",
"aadBasedSecurityPrincipals": [{
"principalId": "[parameters('principalId')]",
"principalId": "[parameters('TestApplicationId')]",
"ledgerRoleName": "Administrator"
}]
}
}],
"outputs": {
"LEDGER_NAME": {
"type": "string",
"value": "[parameters('ledgerName')]"
"value": "[parameters('BaseName')]"
},
"LEDGER_URI": {
"type": "string",
"value": "[resources[0]('ledgerUri')]"
"value": "[concat('https://', parameters('BaseName'), '.confidential-ledger.azure.com')]"
},
"USER_AAD": {
"type": "string",
"value": "[parameters('principalId')]"
"value": "[parameters('TestApplicationId')]"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ stages:
groupId: com.azure
safeName: azuresecurityconfidentialledger
EnvVars:
LEDGERURI: https://$(LEDGER_NAME).confidential-ledger.azure.com
LEDGERURI: $(LEDGER_URI)
IDENTITYSERVICEURI: https://identity.confidential-ledger.core.azure.com/ledgerIdentity/$(LEDGER_NAME)

0 comments on commit f9fd6f6

Please sign in to comment.