Skip to content

Commit

Permalink
Add missing outputs for the test-resource template (#33837)
Browse files Browse the repository at this point in the history
  • Loading branch information
mniamme authored Mar 2, 2023
1 parent f1d88c7 commit 73aecb9
Showing 1 changed file with 57 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,84 @@
"BaseName": {
"type": "string",
"metadata": {
"description": "Ledger Name"
"description": "Name of the test ledger"
}
},
"TestApplicationId": {
"location": {
"type": "string",
"defaultValue": "eastus",
"metadata": {
"description": "Oid of the user"
"description": "Location of the test ledger"
}
},
"location": {
"tenantId": {
"type": "string",
"metadata": {
"description": "Tenant ID for the test application"
}
},
"testApplicationId": {
"type": "string",
"metadata": {
"description": "Application client ID for the test application"
}
},
"testApplicationOid": {
"type": "string",
"defaultValue": "eastus",
"metadata": {
"description": "Location of the ledger."
"description": "Application object ID for the test application"
}
},
"testApplicationSecret": {
"type": "string",
"metadata": {
"description": "Application secret for the test application"
}
}
},
"functions": [],
"variables": {},
"resources": [{
"name": "[parameters('BaseName')]",
"type": "Microsoft.ConfidentialLedger/ledgers",
"apiVersion": "2020-12-01-preview",
"location": "[parameters('location')]",
"properties": {
"ledgerType": "Public",
"aadBasedSecurityPrincipals": [{
"principalId": "[parameters('TestApplicationId')]",
"ledgerRoleName": "Administrator"
}]
"resources": [
{
"name": "[parameters('BaseName')]",
"type": "Microsoft.ConfidentialLedger/ledgers",
"apiVersion": "2020-12-01-preview",
"location": "[parameters('location')]",
"properties": {
"ledgerType": "Public",
"aadBasedSecurityPrincipals": [
{
"principalId": "[parameters('TestApplicationId')]",
"ledgerRoleName": "Administrator"
}
]
}
}
}],
"outputs": {
"LEDGER_NAME": {
],
"outputs": {
"AZURE_TENANT_ID": {
"type": "string",
"value": "[parameters('BaseName')]"
"value": "[parameters('tenantId')]"
},
"AZURE_CLIENT_ID": {
"type": "string",
"value": "[parameters('testApplicationId')]"
},
"AZURE_CLIENT_SECRET": {
"type": "string",
"value": "[parameters('testApplicationSecret')]"
},
"LEDGER_NAME": {
"type": "string",
"value": "[parameters('BaseName')]"
},
"LEDGER_URI": {
"type": "string",
"value": "[concat('https://', parameters('BaseName'), '.confidential-ledger.azure.com')]"
},
"USER_AAD": {
"type": "string",
"value": "[parameters('TestApplicationId')]"
"value": "[parameters('testApplicationOid')]"
}
}
}
}

0 comments on commit 73aecb9

Please sign in to comment.