Skip to content

[Bug Report]: wrong parameter name in the readme.md of the Microsoft.Compute/virtualMachines #2114

Closed

Description

Describe the bug

wrong parameter name in the readme.md of the Microsoft.Compute/virtualMachines

To reproduce

subnetID: should be changed to subnetResourceId

Code snippet

"nicConfigurations": {
  "value": [
    {
      "nicSuffix": "-nic-01",
      "deleteOption": "Delete", // Optional. Can be 'Delete' or 'Detach'
      "ipConfigurations": [
        {
          "name": "ipconfig1",
          "subnetId": "/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/virtualNetworks/<vNetName>/subnets/<subnetName>",
          "pipConfiguration": {
            "publicIpNameSuffix": "-pip-01",
            "roleAssignments": [
              {
                "roleDefinitionIdOrName": "Reader",
                "principalIds": [
                  "<principalId>"
                ]
              }
            ]
          }

Relevant log output

az deployment sub create -c --location westeurope --template-file deploy.bicep --parameters @(".test/parameters.json")          in pwsh at 16:02:16 
C:\Users\olivergulich\GitHub\CARML-ChrisS\ResourceModules\modules\Microsoft.Compute\virtualMachines\deploy.bicep(446,9) : Warning use-resource-id-functions: If property "id" represents a resource ID, it must use a symbolic resource reference, be a parameter or start with one of these functions: extensionResourceId, guid, if, reference, resourceId, subscription, subscriptionResourceId, tenantResourceId. [https://aka.ms/bicep/linter/use-resource-id-functions]

Activity

  1. added
    bug
    on Sep 22, 2022
  2. oliverlabs commented on Sep 22, 2022

    @oliverlabs
    ContributorAuthor

    Could you please assign this issue to me and I will fix it?

  3. AlexanderSehr commented on Sep 22, 2022

    @AlexanderSehr
    Contributor

    Hey Oliver Gulich (@oliverlabs) , just did. Thank you very much.

  4. added
    documentation
    on Sep 22, 2022
  5. oliverlabs commented on Sep 23, 2022

    @oliverlabs
    ContributorAuthor

    Submitted a pull request #2120 @MrMCake

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

Metadata

Metadata

Labels

bugdocumentation

Type

No type

Projects

  • Status
    Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions