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

Implicit Extensions don't generate "imports" as expected #15395

Open
anthony-c-martin opened this issue Oct 24, 2024 · 0 comments
Open

Implicit Extensions don't generate "imports" as expected #15395

anthony-c-martin opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@anthony-c-martin
Copy link
Member

  • main.bicep
    resource foo 'Microsoft.Graph/[email protected]' = {
      displayName: 'asdf'
      uniqueName: 'asdf'
    }
  • bicepconfig.json
    {
        "experimentalFeaturesEnabled": {
            "extensibility": true
        },
        "extensions": {
            "microsoftGraphV1_0": "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:0.1.8-preview"
        },
        "implicitExtensions": [
            "microsoftGraphV1_0"
        ]
    }

The generated output includes the resource as if it were an ARM resource (without an import):

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "languageVersion": "2.1-experimental",
  "contentVersion": "1.0.0.0",
  "metadata": {
    "_EXPERIMENTAL_WARNING": "This template uses ARM features that are experimental. Experimental features should be enabled for testing purposes only, as there are no guarantees about the quality or stability of these features. Do not enable these settings for any production usage, or your production environment may be subject to breaking.",
    "_EXPERIMENTAL_FEATURES_ENABLED": [
      "Extensibility"
    ],
    "_generator": {
      "name": "bicep",
      "version": "0.30.23.60470",
      "templateHash": "6676791430580204440"
    }
  },
  "resources": {
    "foo": {
      "type": "Microsoft.Graph/[email protected]",
      "properties": {
        "displayName": "asdf",
        "uniqueName": "asdf"
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants