Azure / Azure/bicep-types-az

Microsoft.Automation/automationAccounts/variables@2023-11-01- does not show VALUES when isEncrypted = True

Open
#2,349 1 comment 0 reactions 0 assignees View on GitHub
Needs: Triage :mag:
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

**Bicep version**
Bicep CLI version 0.12.40

**Describe the bug**
This API call is performed from Azure Automation Account sandbox.

When trying to use the following API to fecth variables it is only reporting values when variables are not encrypted:

"GET /subscripitons/XXXXXXXXX-xxxx-XXXX-xxx-xxxxxxxxxx/resourceGroups/rg-automation/providers/Microsoft.Automation/automationAccounts/XXXXXXX/variables?api-version=2023-11-01 HTTP/11" 200 1710

{
'value': [
{
'id': '/subscripitons/XXXXXXXXX-xxxx-XXXX-xxx-xxxxxxxxxx/resourceGroups/rg-automation/providers/Microsoft.Automation/automationAccounts/XXXXXXX/variables/mailfrom',
'name': 'mailfrom',
'type': 'Microsoft.Automation/AutomationAccounts/Variables',
'properties': {
'creationTime': '2024-03-22T11:30:03.917+00:00',
'lastModifiedTime': '2024-03-22T11:30:03.917+00:00',
'isEncrypted': False,
'value': '"mbox@box.com"',
'description': ''
}
},
{
'id': '/subscripitons/XXXXXXXXX-xxxx-XXXX-xxx-xxxxxxxxxx/resourceGroups/rg-automation/providers/Microsoft.Automation/automationAccounts/XXXXXXX/variables/testvar',
'name': 'testvar',
'type': 'Microsoft.Automation/AutomationAccounts/Variables',
'properties': {
'creationTime': '2024-11-05T15:11:45.777+00:00',
'lastModifiedTime': '2024-11-07T20:22:32.553+00:00',
'isEncrypted': True,
'description': ''
}
}
]
}

**To Reproduce**
curl to:
$ curl https://management.azure.com/subscripitons/XXXXXXXXX-xxxx-XXXX-xxx-xxxxxxxxxx/resourceGroups/rg-automation/providers/Microsoft.Automation/automationAccounts/XXXXXXX/variables?api-version=2023-11-01

**Additional context**
This is a bug in the https://management.azure.com API for Microsoft.Automation/automationAccounts than in the bicep software.

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file or test is identified in the issue. Start by reproducing the Microsoft.Automation variables request with the supplied curl pattern and verify whether encrypted values are intentionally omitted; done means establishing whether a change belongs in this repository or in the Azure API.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.