Skip to content

Commit

Permalink
Remove incorrect example for 'az role definition update' (Azure#6208)
Browse files Browse the repository at this point in the history
The example is an 'create' command while this is actually an 'update' command.
Closes Azure#5504
  • Loading branch information
derekbekoe authored and tjprescott committed Apr 25, 2018
1 parent 26e1e5a commit a93c9d3
Showing 1 changed file with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,35 +232,6 @@
- name: --role-definition
type: string
short-summary: Description of a role as JSON, or a path to a file containing a JSON description.
examples:
- name: Create a role with read-only access to storage and network resources, and the ability to start or restart VMs.
text: |
az role definition create --role-definition '{
"Name": "Contoso On-call",
"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/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
}'
- name: Create a role from a file containing a JSON description.
text: >
az role definition create --role-definition ad-role.json
"""
helps['ad'] = """
type: group
Expand Down

0 comments on commit a93c9d3

Please sign in to comment.