Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense doesn't show warning when missing required "properties" field #791

Closed
SenthuranSivananthan opened this issue Nov 3, 2020 · 1 comment

Comments

@SenthuranSivananthan
Copy link

SenthuranSivananthan commented Nov 3, 2020

Bicep version
Bicep CLI version 0.1.223-alpha (895cac2)

Describe the bug
When defining a vnet resource, the properties attribute isn't being marked as required. Per ARM template reference, properties is required: https://docs.microsoft.com/en-us/azure/templates/microsoft.network/virtualnetworks

Furthermore, the properties.addressSpace is required in order for deployment to complete.

To Reproduce

param location string = resourceGroup().location

resource vnet 'Microsoft.Network/virtualNetworks@2020-06-01' = {
    location: location
    name: 'vnet'
}

Types with issue (not exhaustive):

  • Microsoft.Network/virtualNetworks@2020-06-01
  • Microsoft.ContainerService/managedClusters@2020-09-01

Additional context

Expected

  1. Intellisense warning
  2. Error BCP035: The specified object is missing the following required properties
@alex-frankel
Copy link
Collaborator

Closing and tracking with #784

@ghost ghost locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants