az neuroshield protected-resource

Note

This reference is part of the neuroshield extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az neuroshield protected-resource command. Learn more about extensions.

Manage Protected Resource.

Commands

Name Description Type Status
az neuroshield protected-resource create

Create a protected resource under a NeuroShield resource.

Extension GA
az neuroshield protected-resource delete

Delete a protected resource under a NeuroShield resource.

Extension GA
az neuroshield protected-resource finding

Manage Finding.

Extension GA
az neuroshield protected-resource finding list

List findings under a protected resource.

Extension GA
az neuroshield protected-resource finding mitigate

Triggers mitigation for all awaiting-approval mitigations under a finding.

Extension GA
az neuroshield protected-resource finding rollback

Rolls back succeeded rollbackable mitigations under a finding.

Extension GA
az neuroshield protected-resource finding show

Get a finding under a protected resource.

Extension GA
az neuroshield protected-resource list

List all protected resources under a NeuroShield resource.

Extension GA
az neuroshield protected-resource mitigation

Manage Mitigation.

Extension GA
az neuroshield protected-resource mitigation execute

Approves and queues a mitigation for execution.

Extension GA
az neuroshield protected-resource mitigation list

List mitigations under a protected resource.

Extension GA
az neuroshield protected-resource mitigation rollback

Rolls back a mitigation when rollback is available.

Extension GA
az neuroshield protected-resource mitigation show

Get a mitigation under a protected resource.

Extension GA
az neuroshield protected-resource show

Get a protected resource under a NeuroShield resource.

Extension GA
az neuroshield protected-resource trigger-inventory-upload

Requests a fresh inventory upload from the Neuron agents associated with a protected resource.

Extension GA
az neuroshield protected-resource wait

Place the CLI in a waiting state until a condition is met.

Extension GA

az neuroshield protected-resource create

Create a protected resource under a NeuroShield resource.

az neuroshield protected-resource create --name --protected-resource-name
                                         --neuroshield-name
                                         --resource-group
                                         --target-resource-id
                                         [--acquire-policy-token]
                                         [--change-reference]
                                         [--if-match]
                                         [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                         [--target-identity]

Examples

Create or update protected resource with a system-assigned target identity

az neuroshield protected-resource create --resource-group myResourceGroup --neuroshield-name myNeuroShield --protected-resource-name vm-01 --target-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myComputeRg/providers/Microsoft.Compute/virtualMachines/vm-01 --target-identity "{type:SystemAssigned,principal-id:11111111-1111-1111-1111-111111111111,tenant-id:22222222-2222-2222-2222-222222222222}"

Create or update protected resource with a user-assigned target identity

az neuroshield protected-resource create --resource-group myResourceGroup --neuroshield-name myNeuroShield --protected-resource-name vm-01 --target-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myComputeRg/providers/Microsoft.Compute/virtualMachines/vm-01 --target-identity "{type:UserAssigned,user-assigned-identities:{/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myIdentityRg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/neuronIdentity:{principal-id:11111111-1111-1111-1111-111111111111,client-id:22222222-2222-2222-2222-222222222222}}}"

Create or update protected resource with explicit None identity

az neuroshield protected-resource create --resource-group myResourceGroup --neuroshield-name myNeuroShield --protected-resource-name vm-01 --target-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myComputeRg/providers/Microsoft.Compute/virtualMachines/vm-01 --target-identity "{type:None}"

Create or update protected resource without an identity

az neuroshield protected-resource create --resource-group myResourceGroup --neuroshield-name myNeuroShield --protected-resource-name vm-01 --target-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myComputeRg/providers/Microsoft.Compute/virtualMachines/vm-01

Required Parameters

--name --protected-resource-name -n

The name of the protected resource.

--neuroshield-name

The name of the NeuroShield resource.

--resource-group -g

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

--target-resource-id

Azure Resource Manager resource ID of the target virtual machine or virtual machine scale set.

Property Value
Parameter group: Properties Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--if-match

The entity tag that makes the request conditional.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--target-identity

Caller-supplied identity of the target VM or VMSS. Omit if the target has no identity. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Property Value
Parameter group: Properties Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az neuroshield protected-resource delete

Delete a protected resource under a NeuroShield resource.

az neuroshield protected-resource delete [--acquire-policy-token]
                                         [--change-reference]
                                         [--ids]
                                         [--if-match]
                                         [--name --protected-resource-name]
                                         [--neuroshield-name]
                                         [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                         [--resource-group]
                                         [--subscription]
                                         [--yes]

Examples

Delete protected resource

az neuroshield protected-resource delete --resource-group myResourceGroup --neuroshield-name myNeuroShield --protected-resource-name vm-01

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--if-match

The entity tag that makes the request conditional.

--name --protected-resource-name -n

The name of the protected resource.

Property Value
Parameter group: Resource Id Arguments
--neuroshield-name

The name of the NeuroShield resource.

Property Value
Parameter group: Resource Id Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

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

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

--verbose

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

Property Value
Default value: False

az neuroshield protected-resource list

List all protected resources under a NeuroShield resource.

az neuroshield protected-resource list --neuroshield-name
                                       --resource-group
                                       [--max-items]
                                       [--next-token]
                                       [--skip-token]
                                       [--top]

Examples

List protected resources

az neuroshield protected-resource list --resource-group myResourceGroup --neuroshield-name myNeuroShield

Required Parameters

--neuroshield-name

The name of the NeuroShield resource.

--resource-group -g

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

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
--skip-token

The continuation token used to retrieve the next page.

--top

The maximum number of items to return.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az neuroshield protected-resource show

Get a protected resource under a NeuroShield resource.

az neuroshield protected-resource show [--ids]
                                       [--name --protected-resource-name]
                                       [--neuroshield-name]
                                       [--resource-group]
                                       [--subscription]

Examples

Get protected resource

az neuroshield protected-resource show --resource-group myResourceGroup --neuroshield-name myNeuroShield --protected-resource-name vm-01

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --protected-resource-name -n

The name of the protected resource.

Property Value
Parameter group: Resource Id Arguments
--neuroshield-name

The name of the NeuroShield resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

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

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

--verbose

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

Property Value
Default value: False

az neuroshield protected-resource trigger-inventory-upload

Requests a fresh inventory upload from the Neuron agents associated with a protected resource.

az neuroshield protected-resource trigger-inventory-upload [--acquire-policy-token]
                                                           [--change-reference]
                                                           [--ids]
                                                           [--name --protected-resource-name]
                                                           [--neuroshield-name]
                                                           [--resource-group]
                                                           [--subscription]

Examples

Trigger an inventory upload

az neuroshield protected-resource trigger-inventory-upload --resource-group myResourceGroup --neuroshield-name myNeuroShield --protected-resource-name vm-01

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --protected-resource-name -n

The name of the protected resource.

Property Value
Parameter group: Resource Id Arguments
--neuroshield-name

The name of the NeuroShield resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

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

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

--verbose

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

Property Value
Default value: False

az neuroshield protected-resource wait

Place the CLI in a waiting state until a condition is met.

az neuroshield protected-resource wait [--acquire-policy-token]
                                       [--change-reference]
                                       [--created]
                                       [--custom]
                                       [--deleted]
                                       [--exists]
                                       [--ids]
                                       [--interval]
                                       [--name --protected-resource-name]
                                       [--neuroshield-name]
                                       [--resource-group]
                                       [--subscription]
                                       [--timeout]
                                       [--updated]

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--created

Wait until created with 'provisioningState' at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

Property Value
Parameter group: Wait Condition Arguments
--deleted

Wait until deleted.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--exists

Wait until the resource exists.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--interval

Polling interval in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 30
--name --protected-resource-name -n

The name of the protected resource.

Property Value
Parameter group: Resource Id Arguments
--neuroshield-name

The name of the NeuroShield resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
--timeout

Maximum wait in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

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

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

--verbose

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

Property Value
Default value: False