Edit

pac analytics

(Preview) Retrieve and run Power Platform advisor recommendations and remediations.

Commands

Command Description
pac analytics execute-recommendation-action (Preview) Execute a recommended action on a set of recommendation resource(s).
pac analytics get-action-schema (Preview) Gets the schema for an action.
pac analytics get-recommendation-resources (Preview) Gets the list of resources for a recommendation for the tenant.
pac analytics get-recommendation-scenarios (Preview) Gets the list of recommendation scenario names for the tenant.
pac analytics get-recommendations (Preview) Gets the list of recommendations for the tenant.
pac analytics get-scenario-actions (Preview) Gets allowed actions for a recommendation.

pac analytics execute-recommendation-action

(Preview) Execute a recommended action on a set of recommendation resource(s).

Required Parameters for analytics execute-recommendation-action

--action-name

The name of the action to execute.

--action-parameters

The collection of parameters to carry out the action for a resource Provide the value as a JSON object.

--scenario

The name of the recommendation for which the action is triggered

execute-recommendation-action remarks

You can also invoke this command using the Power Platform REST API Recommendations - Execute Recommendation Action.

pac analytics get-action-schema

(Preview) Gets the schema for an action.

Required Parameters for analytics get-action-schema

--action-name

The name of the action.

--scenario

The recommendation name.

Optional Parameters for analytics get-action-schema

--x-ms-api-version

The API version.

get-action-schema remarks

You can also invoke this command using the Power Platform REST API Recommendations - Get Action Schema.

pac analytics get-recommendation-resources

(Preview) Gets the list of resources for a recommendation for the tenant.

Required Parameters for analytics get-recommendation-resources

--scenario

The recommendation name.

Optional Parameters for analytics get-recommendation-resources

--columns

Comma-separated list of response properties to include in table output. Use --json for the complete response.

--skip-token

Skip token for the next page of resources.

get-recommendation-resources remarks

You can also invoke this command using the Power Platform REST API Recommendations - Get Recommendation Resources.

pac analytics get-recommendation-scenarios

(Preview) Gets the list of recommendation scenario names for the tenant.

Optional Parameters for analytics get-recommendation-scenarios

--x-ms-api-version

The API version.

get-recommendation-scenarios remarks

You can also invoke this command using the Power Platform REST API Recommendations - Get Recommendation Scenarios.

pac analytics get-recommendations

(Preview) Gets the list of recommendations for the tenant.

Optional Parameters for analytics get-recommendations

--columns

Comma-separated list of response properties to include in table output. Use --json for the complete response.

--skip-token

Skip token for the next page of recommendations.

get-recommendations remarks

You can also invoke this command using the Power Platform REST API Recommendations - Get Recommendations.

pac analytics get-scenario-actions

(Preview) Gets allowed actions for a recommendation.

Required Parameters for analytics get-scenario-actions

--scenario

The recommendation name.

Optional Parameters for analytics get-scenario-actions

--x-ms-api-version

The API version.

get-scenario-actions remarks

You can also invoke this command using the Power Platform REST API Recommendations - Get Scenario Actions.

See also

Microsoft Power Platform CLI Command Groups
Microsoft Power Platform CLI overview