{"action":"opened","issue":{"url":"https://api.github.com/repos/azureautomation/automation-packs/issues/10","repository_url":"https://api.github.com/repos/azureautomation/automation-packs","labels_url":"https://api.github.com/repos/azureautomation/automation-packs/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/azureautomation/automation-packs/issues/10/comments","events_url":"https://api.github.com/repos/azureautomation/automation-packs/issues/10/events","html_url":"https://github.com/azureautomation/automation-packs/issues/10","id":134504449,"number":10,"title":"Encrypted variable cannot be called in ARM template","user":{"login":"slavizh","id":11890856,"avatar_url":"https://avatars.githubusercontent.com/u/11890856?v=3","gravatar_id":"","url":"https://api.github.com/users/slavizh","html_url":"https://github.com/slavizh","followers_url":"https://api.github.com/users/slavizh/followers","following_url":"https://api.github.com/users/slavizh/following{/other_user}","gists_url":"https://api.github.com/users/slavizh/gists{/gist_id}","starred_url":"https://api.github.com/users/slavizh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavizh/subscriptions","organizations_url":"https://api.github.com/users/slavizh/orgs","repos_url":"https://api.github.com/users/slavizh/repos","events_url":"https://api.github.com/users/slavizh/events{/privacy}","received_events_url":"https://api.github.com/users/slavizh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T07:39:16Z","updated_at":"2016-02-18T07:39:16Z","closed_at":null,"body":"You can set encrypted variable via ARM but you cannot output the value from that variable.\r\nLet's say that we have the following code in output section:\r\n \"primarykey\": {\r\n      \"value\": \"[reference(Concat('Microsoft.Automation/automationAccounts/', parameters('omsAutomationAccountName'), '/variables/', variables('variableNameOmsAutomationAccountPrimaryKey')), parameters('omsAutomationApiVersion')).value]\",\r\n      \"type\": \"securestring\"\r\n    }\r\n\r\nIn the output the value is not there. It works for non encrypted values.\r\nIt will be good if these values can be used in ARM"}}