az sf managed-service load-metrics
Manage service load metrics running on an Azure Service Fabric managed cluster. Only support ARM deployed services.
Commands
Name | Description | Type | Status |
---|---|---|---|
az sf managed-service load-metrics create |
Create a new managed service load metric on an Azure Service Fabric managed cluster. |
Core | GA |
az sf managed-service load-metrics delete |
Delete a managed service. |
Core | GA |
az sf managed-service load-metrics update |
Update a managed service. |
Core | GA |
az sf managed-service load-metrics create
Create a new managed service load metric on an Azure Service Fabric managed cluster.
az sf managed-service load-metrics create --application
--cluster-name
--metric-name
--name
--resource-group
[--default-load]
[--primary-default-load]
[--secondary-default-load]
[--weight]
Examples
Create a new stateless managed service load metric.
az sf managed-service load-metrics create -g testRG -c testCluster --application-name testApp --service-name testService \
--metric-name Metric1 --weight Low --default-load 3
Create a new stateful service load metric.
az sf managed-service load-metrics create -g testRG -c testCluster --application-name testApp --service-name testService2 \
--metric-name Metric2 --weight High --primary-default-load 3 --secondary-default-load 2
Required Parameters
Specify the name of the service.
Specify the name of the cluster, if not given it will be same as resource group name.
Specify the name of the metric.
Specify the name of the service.
Specify the resource group name. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Specify the default amount of load, as a number, that this service creates for this metric. Used only for Stateless services.
Specify the default amount of load, as a number, that this service creates for this metric when it is a Primary replica. Used only for Stateful services.
Specify the default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. Used only for Stateful services.
Specify the service load metric relative weight, compared to other metrics configured for this service, as a number.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sf managed-service load-metrics delete
Delete a managed service.
az sf managed-service load-metrics delete --application
--cluster-name
--metric-name
--name
--resource-group
Examples
Delete managed service.
az sf managed-service load-metrics delete -g testRG -c testCluster --application-name testApp --service-name testService2 \
--metric-name Metric1
Required Parameters
Specify the name of the service.
Specify the name of the cluster, if not given it will be same as resource group name.
Specify the name of the metric.
Specify the name of the service.
Specify the resource group name. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sf managed-service load-metrics update
Update a managed service.
az sf managed-service load-metrics update --application
--cluster-name
--metric-name
--name
--resource-group
[--default-load]
[--primary-default-load]
[--secondary-default-load]
[--weight]
Examples
Update a new stateless managed service load metric.
az sf managed-service load-metrics update -g testRG -c testCluster --application-name testApp --service-name testService \
--metric-name Metric1 --weight Medium --default-load 5
Update a new stateful service load metric.
az sf managed-service load-metrics update -g testRG -c testCluster --application-name testApp --service-name testService2 \
--metric-name Metric2 --weight Low --primary-default-load 2 --secondary-default-load 1
Required Parameters
Specify the name of the service.
Specify the name of the cluster, if not given it will be same as resource group name.
Specify the name of the metric.
Specify the name of the service.
Specify the resource group name. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Specify the default amount of load, as a number, that this service creates for this metric. Used only for Stateless services.
Specify the default amount of load, as a number, that this service creates for this metric when it is a Primary replica. Used only for Stateful services.
Specify the default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. Used only for Stateful services.
Specify the service load metric relative weight, compared to other metrics configured for this service, as a number.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI