Skip to content

Regenerate Bicep files with new translator and update baseline#158

Open
jiangmingzhe wants to merge 1 commit intoAzure:mainfrom
jiangmingzhe:release/bicep-samples-02092025-2
Open

Regenerate Bicep files with new translator and update baseline#158
jiangmingzhe wants to merge 1 commit intoAzure:mainfrom
jiangmingzhe:release/bicep-samples-02092025-2

Conversation

@jiangmingzhe
Copy link
Member

@jiangmingzhe jiangmingzhe commented Feb 10, 2026

Translate all the Terraform files with new translator.

The new translator went through an architecture change that make it easier to support more scenarios in future.

Previous translator still has 14 translation failures, while the new translator has zero translation failures, besides the Terraform files that are skipped for translation.

Comment on lines +4 to +6
var keyspaceName = 'resourcenameks'
var tableName = 'resourcenametbl'
var accountName = 'resourcename'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a regression in the generated output

clientRegistrationEndpoint: 'https://azacceptance.hashicorptest.com/client/register'
clientSecret: null
defaultScope: ''
clientSecret: '${oauthClientSecret}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interpolation here is unnecessary - instead of:

clientSecret: '${oauthClientSecret}'

It's idiomatic to output:

clientSecret: oauthClientSecret

Comment on lines +12 to +15
publicNetworkAccess: 'Enabled'
publisherEmail: 'pub1@email.com'
publisherName: 'pub1'
virtualNetworkType: 'None'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for the change in ordering of these properties? Is this to match the original source file?

tier: 'GeneralPurpose'
identity: {
type: 'None'
userAssignedIdentities: null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we omit this property entirely instead of setting to null?

resource policy 'Microsoft.DevTestLab/labs/policySets/policies@2018-09-15' = {
parent: policySet
name: 'LabVmCount'
name: 'policySets/default/LabVmCount'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code looked more idiomatic here - better to use the parent property with an existing resource, than to use a fully-qualified name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants