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
The name of the protected resource.
The name of the NeuroShield resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The entity tag that makes the request conditional.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
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
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| 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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
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 |
The entity tag that makes the request conditional.
The name of the protected resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the NeuroShield resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
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
The name of the NeuroShield resource.
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.
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 |
Token to specify where to start paginating. This is the token value from a previously truncated response.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
The continuation token used to retrieve the next page.
The maximum number of items to return.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| 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.
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 |
The name of the protected resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the NeuroShield resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
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 |
The name of the protected resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the NeuroShield resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Wait until created with 'provisioningState' at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
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 |
Wait until deleted.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the resource exists.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
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 |
Polling interval in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 30 |
The name of the protected resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the NeuroShield resource.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 |
Maximum wait in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |