Azure / Azure/bicep-types-az

Deployment Script missing outputs property

Open
#2,155 2 comments 0 reactions 0 assignees View on GitHub
RP: Microsoft.Resources
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

### Resource Type

Microsoft.Resources/deploymentScripts

### Api Version

2023-08-01

### Issue Type

Missing property(s)

### Other Notes

This code was working before now is throwing an exception:
The type "object" does not contain property "outputs". Available properties include "arguments", "azCliVersion", "cleanupPreference", "containerSettings", "retentionInterval", "scriptContent", "storageAccountSettings", "timeout".

### Bicep Repro

```Bicep
param scriptContent string
param arguments string

param storageAccountName string?

@description('Specifies the location for resources.')
param location string

@description('Provide a name suffix per CAF.')
param nameSuffixShort string

param subnetId string = ''

var configProperties = {
azCliVersion: '2.51.0'
arguments: arguments
scriptContent: scriptContent
timeout: 'PT60M'
cleanupPreference: 'OnSuccess'
retentionInterval: 'P1D'
storageAccountSettings: !empty(subnetId) ? {
storageAccountName: storageAccountName
} : null
containerSettings: !empty(subnetId) ? {
subnetIds: [
{
id: subnetId
}
]
} : null
}

resource deploymentCliScript 'Microsoft.Resources/deploymentScripts@2023-08-01' = {
name: 'executeAzCli'
location: location
kind: 'AzureCLI'
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${managedIdentity.id}': {}
}
}
properties: configProperties
}

output values object = deploymentCliScript.properties.outputs

```

### Confirm

- [X] I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Microsoft.Resources/deploymentScripts resource type at API version 2023-08-01 and compare its declared properties with the Bicep reproduction. Confirm how the outputs property is represented, then verify that the reproduction can access deploymentCliScript.properties.outputs without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.