Skip to content

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

@oliverlabs

Description

@oliverlabs

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]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions