Share via


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

--application --application-name

Specify the name of the service.

--cluster-name -c

Specify the name of the cluster, if not given it will be same as resource group name.

--metric-name

Specify the name of the metric.

--name --service-name

Specify the name of the service.

--resource-group -g

Specify the resource group name. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--default-load

Specify the default amount of load, as a number, that this service creates for this metric. Used only for Stateless services.

--primary-default-load

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.

--secondary-default-load

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.

--weight

Specify the service load metric relative weight, compared to other metrics configured for this service, as a number.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--application --application-name

Specify the name of the service.

--cluster-name -c

Specify the name of the cluster, if not given it will be same as resource group name.

--metric-name

Specify the name of the metric.

--name --service-name

Specify the name of the service.

--resource-group -g

Specify the resource group name. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--application --application-name

Specify the name of the service.

--cluster-name -c

Specify the name of the cluster, if not given it will be same as resource group name.

--metric-name

Specify the name of the metric.

--name --service-name

Specify the name of the service.

--resource-group -g

Specify the resource group name. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--default-load

Specify the default amount of load, as a number, that this service creates for this metric. Used only for Stateless services.

--primary-default-load

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.

--secondary-default-load

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.

--weight

Specify the service load metric relative weight, compared to other metrics configured for this service, as a number.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.