Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Azure CLI comment error when updating custom role --- Role "id" is missing. Look for the role in the current subscription.

$
0
0

Azure CLI comment error ( this appear in green unlike a error which is normally in red -  occurred  when updating custom role ---

Role "id" is missing. Look for the role in the current subscription.

Is this error significant???  I checked the custom role and it appears to have been updated and the error

C:\WINDOWS\system32>az role definition update --role-definition "C:\Azure Custom Role Test\Safe.json"

Role "id" is missing. Look for the role in the current subscription...
{
  "assignableScopes": [
    "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  ],
  "description": "Perform VM actions and read storage and network information.",
  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Authorization/roleDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "name": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,
  "permissions": [
    {
      "actions": [
        "Microsoft.Compute/*/read",
        "Microsoft.Compute/virtualMachines/start/action",
        "Microsoft.Compute/virtualMachines/restart/action",
        "Microsoft.Network/*/read",
        "Microsoft.Storage/*/read",
        "Microsoft.Authorization/*/read",
        "Microsoft.Resources/subscriptions/resourceGroups/read",
        "Microsoft.Resources/subscriptions/resourceGroups/resources/read",
        "Microsoft.Insights/alertRules/*",
        "Microsoft.Support/*"
      ],
      "dataActions": [
        "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/*"
      ],
      "notActions": [],
      "notDataActions": [
        "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write"
      ]
    }
  ],
  "roleName": "Test Custom Role 1",
  "roleType": "CustomRole",
  "type": "Microsoft.Authorization/roleDefinitions"
}

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx   below is the CLI command that was run that produce the role Id comment.   What do I need to change and where do I get this information?

{
"Name": "Test Custom Role 1", 
"Id": null, 
"Description": "Perform VM actions and read storage and network information.", 
"Actions": [
  "Microsoft.Compute/*/read",
  "Microsoft.Compute/virtualMachines/start/action",
  "Microsoft.Compute/virtualMachines/restart/action",
  "Microsoft.Network/*/read",
  "Microsoft.Storage/*/read",
  "Microsoft.Authorization/*/read",
  "Microsoft.Resources/subscriptions/resourceGroups/read",
  "Microsoft.Resources/subscriptions/resourceGroups/resources/read",
  "Microsoft.Insights/alertRules/*",
  "Microsoft.Support/*"
], "DataActions": [
  "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/*"
], "NotDataActions": [
  "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write"
], "AssignableScopes": [ "/subscriptions/XXXXXXXXXXXXXXXXXXXXXXXXXXXX" ]


}


dsk





Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>