Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
dc789b2
update help examples for command [keyvault]
azclibot Dec 1, 2020
56ec8a6
update help examples for command [monitor]
azclibot Dec 1, 2020
25f892c
update help examples for command [network]
azclibot Dec 1, 2020
712bcc3
update help examples for command [privatedns]
azclibot Dec 1, 2020
052758e
update help examples for command [resource]
azclibot Dec 1, 2020
ee4a6ef
update help examples for command [storage]
azclibot Dec 1, 2020
b142b39
update help examples for command [vm]
azclibot Dec 1, 2020
c4843b6
remove keyvault example with deprecated argument
Dec 2, 2020
59b0374
Update src/azure-cli/azure/cli/command_modules/keyvault/_help.py
Dec 2, 2020
b4f1c60
Update src/azure-cli/azure/cli/command_modules/storage/_help.py
Dec 2, 2020
7b257da
Update src/azure-cli/azure/cli/command_modules/storage/_help.py
Dec 3, 2020
0440ae0
Update src/azure-cli/azure/cli/command_modules/resource/_help.py
Dec 3, 2020
831f445
Update src/azure-cli/azure/cli/command_modules/storage/_help.py
Dec 3, 2020
d17d25d
update vm
Dec 4, 2020
8c85fcc
resource --parameters value refine
Dec 7, 2020
5f29bd7
network argument value not case sensitive
Dec 7, 2020
7abaa47
monitor suggestion
Dec 9, 2020
fd893dd
revert network which example with --subscription
Dec 10, 2020
aa0922d
revert some example for storage as value name is case insesitive
Dec 10, 2020
3046b6e
revert example for resource
Dec 10, 2020
d7bffb3
Update src/azure-cli/azure/cli/command_modules/storage/_help.py
Dec 10, 2020
0f7798c
reserve an example for storage
Dec 10, 2020
14b637c
lowercase blob name
Dec 10, 2020
aa5f2aa
fix indent
Dec 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/azure-cli/azure/cli/command_modules/keyvault/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@
type: command
short-summary: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions. This operation requires the storage/delete permission.
examples:
- name: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions (autogenerated)
text: |
az keyvault storage remove --id "/subscriptions/00000000-0000-0000-0000-00000000000000000/resourceGroups/myrg/providers/Microsoft.KeyVault/vaults/mykv/privateEndpointConnections/mykv.00000000-0000-0000-0000-00000000000000000"
crafted: true
- name: Remove a Key Vault managed Azure Storage Account and all associated SAS definitions (autogenerated)
text: |
az keyvault storage remove --name MyStorageAccount --vault-name MyVault
Expand Down
38 changes: 25 additions & 13 deletions src/azure-cli/azure/cli/command_modules/monitor/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@
text: |
az monitor activity-log alert update --enabled true --name MyActivityLogAlerts --resource-group MyResourceGroup --subscription MySubscription
crafted: true
- name: Update the details of this activity log alert. (autogenerated)
text: |
az monitor activity-log alert update --name MyActivityLogAlerts --resource-group MyResourceGroup --tags key=value
crafted: true
"""

helps['monitor activity-log list'] = """
Expand Down Expand Up @@ -1004,7 +1008,7 @@
examples:
- name: Delete a workspace instance. (autogenerated)
text: |
az monitor log-analytics workspace delete --resource-group MyResourceGroup --workspace-name MyWorkspace
az monitor log-analytics workspace delete --force true --resource-group MyResourceGroup --workspace-name MyWorkspace
crafted: true
"""

Expand Down Expand Up @@ -1060,7 +1064,7 @@
examples:
- name: Get a list of management groups connected to a workspace. (autogenerated)
text: |
az monitor log-analytics workspace list-management-groups --resource-group MyResourceGroup --workspace-name MyWorkspace
az monitor log-analytics workspace list-management-groups --resource-group MyResourceGroup --subscription mysubscription --workspace-name MyWorkspace
crafted: true
"""

Expand Down Expand Up @@ -1122,7 +1126,7 @@
examples:
- name: Enable an intelligence pack for a given workspace. (autogenerated)
text: |
az monitor log-analytics workspace pack enable --name MyIntelligencePack --resource-group MyResourceGroup --workspace-name MyWorkspace
az monitor log-analytics workspace pack enable --name MyIntelligencePack --resource-group MyResourceGroup --subscription mysubscription --workspace-name MyWorkspace
crafted: true
"""

Expand All @@ -1149,6 +1153,11 @@
helps['monitor log-analytics workspace update'] = """
type: command
short-summary: Update a workspace instance
examples:
- name: Update a workspace instance. (autogenerated)
text: |
az monitor log-analytics workspace update --resource-group myresourcegroup --retention-time 30 --workspace-name myworkspace
crafted: true
"""

helps['monitor log-analytics workspace linked-service'] = """
Expand Down Expand Up @@ -1226,6 +1235,10 @@
text: az monitor log-analytics workspace linked-storage create --type AzureWatson -g MyResourceGroup --workspace-name MyWorkspace --storage-accounts StorageAccount1 StorageAccount2
- name: Create one linked storage accounts for a log analytics workspace using the resource id of the storage account.
text: az monitor log-analytics workspace linked-storage create --type AzureWatson -g MyResourceGroup --workspace-name MyWorkspace --storage-accounts /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000001
- name: Create some linked storage accounts for log analytics workspace. (autogenerated)
text: |
az monitor log-analytics workspace linked-storage create --resource-group MyResourceGroup --storage-accounts /subscriptions/00000000-0000-0000-0000-00000000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000001 --subscription mysubscription --type CustomLogs --workspace-name MyWorkspace
crafted: true
"""

helps['monitor log-analytics workspace linked-storage delete'] = """
Expand Down Expand Up @@ -1260,9 +1273,10 @@
type: command
short-summary: List all linked storage accounts for a log analytics workspace.
examples:
- name: List all linked storage accounts for a log analytics workspace
text: az monitor log-analytics workspace linked-storage list -g MyResourceGroup --workspace-name MyWorkspace

- name: List all linked storage accounts for a log analytics workspace. (autogenerated)
text: |
az monitor log-analytics workspace linked-storage list --resource-group MyResourceGroup --workspace-name MyWorkspace
crafted: true
"""

helps['monitor log-analytics workspace linked-storage show'] = """
Expand Down Expand Up @@ -1511,10 +1525,6 @@
- name: --remove-actions
short-summary: Space-separated list of action group names to remove.
examples:
- name: Update a metric-based alert rule. (autogenerated)
text: |
az monitor metrics alert update --enabled true --name MyAlertRule --resource-group MyResourceGroup
crafted: true
- name: Disable/Enable a metric-based alert rule.
text: |
az monitor metrics alert update --enabled false --name MyAlertRule --resource-group MyResourceGroup
Expand Down Expand Up @@ -1617,9 +1627,11 @@
helps['monitor private-link-scope create'] = """
type: command
short-summary: Create a private link scope resource.
example:
- name: Create a private link scope resource
text: az monitor private-link-scope create -g MyRG -n MyScope
examples:
- name: Create a private link scope resource (autogenerated)
text: |
az monitor private-link-scope create --name MyAzureMonitorPrivateLinkScope --resource-group MyResourceRroup
crafted: true
"""

helps['monitor private-link-scope update'] = """
Expand Down
Loading