I am new to writing Azure Resource Manager templates; I have a requirement where I need to retrieve my Azure Storage Account Connection String. I am able to retrieve it's access key using [listKeys(variables('storageAccountId'), '2019-04-01').keys[0].value]
where storageAccountId
is [resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]
but I'm unable to do so for the connection string(primary).
Now, my question is like we have listKeys
function to retrieve the access keys, do we have some system function for retrieving connection string also? Or do we need to concatenate and create the connection string? I have the values for Storage Account Name & Resource Group Name. How can I do this using ARM?