שתף באמצעות


az sf managed-service correlation-scheme

Manage correlation schemes of services running on an Azure Service Fabric managed cluster. Only support ARM deployed services.

Commands

Name Description Type Status
az sf managed-service correlation-scheme create

Create a new managed service correlation scheme on an Azure Service Fabric managed cluster.

Core GA
az sf managed-service correlation-scheme delete

Delete a managed service correlation scheme.

Core GA
az sf managed-service correlation-scheme update

Update a managed service correlation scheme.

Core GA

az sf managed-service correlation-scheme create

Create a new managed service correlation scheme on an Azure Service Fabric managed cluster.

Create a new managed service correlation scheme on an Azure Service Fabric managed cluster. NOTE You can only have one service correlation per service.

az sf managed-service correlation-scheme create --application
                                                --cluster-name
                                                --correlated-name
                                                --name
                                                --resource-group
                                                --scheme

Examples

Create a new managed service correlation scheme.

az sf managed-service correlation-scheme create -g testRG -c testCluster --application-name testApp --service-name testService \
  --correlated-service-name "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.ServiceFabric/managedclusters/testCluster/applications/testApp/services/testService2" \
    --scheme AlignedAffinity

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.

--correlated-name --correlated-service-name

Specify the Arm Resource ID of the service that the correlation relationship is established with.

--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>.

--scheme

Specify the ServiceCorrelationScheme which describes the relationship between this service and the service specified via correlated_service_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 correlation-scheme delete

Delete a managed service correlation scheme.

az sf managed-service correlation-scheme delete --application
                                                --cluster-name
                                                --correlated-name
                                                --name
                                                --resource-group

Examples

Delete managed service correlation scheme.

az sf managed-service correlation-scheme delete -g testRG -c testCluster --application-name testApp --service-name testService \
  --correlated-service-name "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.ServiceFabric/managedclusters/testCluster/applications/testApp/services/testService2"

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.

--correlated-name --correlated-service-name

Specify the Arm Resource ID of the service that the correlation relationship is established with.

--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 correlation-scheme update

Update a managed service correlation scheme.

az sf managed-service correlation-scheme update --application
                                                --cluster-name
                                                --correlated-name
                                                --name
                                                --resource-group
                                                --scheme

Examples

Update managed service correlation scheme.

az sf managed-service correlation-scheme update -g testRG -c testCluster --application-name testApp --service-name testService \
  --correlated-service-name "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.ServiceFabric/managedclusters/testCluster/applications/testApp/services/testService2" \
    --scheme NonAlignedAffinity

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.

--correlated-name --correlated-service-name

Specify the Arm Resource ID of the service that the correlation relationship is established with.

--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>.

--scheme

Specify the ServiceCorrelationScheme which describes the relationship between this service and the service specified via correlated_service_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.