Skip to content

Commit d9c22c9

Browse files
committed
add example
1 parent ed4fb3f commit d9c22c9

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/cluster/identity/_assign.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Assign(AAZCommand):
1818
"""Assign the user or system managed identities.
19+
20+
:example: Add a system assigned managed identity to an existing cluster
21+
az monitor log-analytics cluster identity assign --name cluster --resource-group rg --system-assigned
1922
"""
2023

2124
_aaz_info = {

src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/workspace/_failback.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Failback(AAZCommand):
1818
"""Deactivates failover for the specified workspace.The failback operation is asynchronous and can take up to 30 minutes to complete.The status of the operation can be checked using the operationId returned in the response.
19+
20+
:example: Deactive failover for specified workspace
21+
az monitor log-analytics workspace failback --resource-group oiautorest6685 --workspace-name oiautorest6685
1922
"""
2023

2124
_aaz_info = {

src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/workspace/_failover.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Failover(AAZCommand):
1818
"""Activates failover for the specified workspace.The specified replication location must match the location of the enabled replication for this workspace.The failover operation is asynchronous and can take up to 30 minutes to complete.The status of the operation can be checked using the operationId returned in the response.
19+
20+
:example: Activates failover for the specified workspace
21+
az monitor log-analytics workspace failover --resource-group oiautorest6685 --location eastus --workspace-name oiautorest6685
1922
"""
2023

2124
_aaz_info = {

src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/workspace/identity/_assign.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Assign(AAZCommand):
1818
"""Assign the user or system managed identities.
19+
20+
:example: Add a system assigned managed identity to an existing workspace
21+
az monitor log-analytics workspace identity assign --name workspace --resource-group rg --system-assigned
1922
"""
2023

2124
_aaz_info = {

0 commit comments

Comments
 (0)