Skip to content

Microsoft.Migrate throws a BCP081: Resource type "Microsoft.Migrate/migrateProjects/solutions@2020-05-01" does not have types available. #6640

Open

Description

Bicep version
bicep --version
Bicep CLI version 0.5.6 (5f2f88f)

Describe the bug
MigrateProject samples on MS's doc site reference "Microsoft.Migrate/migrateProjects/solutions@2020-05-01"

However, when you use that in a Bicep file it indicates types are not available:

resource migrateProject 'Microsoft.Migrate/migrateProjects@2020-05-01' = {
  name: 'NameOfProject'
  location: 'centralus'
  tags: {
    'Migrate Project': 'NameOfProject'
  }
  properties: {}
}
C:\temp\migrateproject.bicep(12,3) : Warning BCP187: The property "tags" does not exist in the resource definition, although it might still be valid. If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
C:\temp\migrateproject.bicep(16,28) : Warning BCP081: Resource type "Microsoft.Migrate/migrateProjects/solutions@2020-05-01" does not have types available.

In addition, the tags property is indicated as"

Warning BCP187: The property "tags" does not exist in the resource definition, although it might still be valid.

To Reproduce
Steps to reproduce the behavior:

Simple Bicep file:

resource migrateProject 'Microsoft.Migrate/migrateProjects@2020-05-01' = {
  name: 'NameOfProject'
  location: 'centralus'
  tags: {
    'Migrate Project': 'NameOfProject'
  }
  properties: {}
}

Additional context
Add any other context about the problem here.

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions