> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Resource

Get a resource by its resource group, provider namespace, resource type, and name.

* **Least privileged** Azure RBAC action required: `*/read` on the target resource.
* **Built-in role** that grants access: `Reader`.

<Note>
  External Documentation

  To learn more, visit the [Azure documentation](https://learn.microsoft.com/en-us/rest/api/resources/resources/get?view=rest-resources-2021-04-01).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter                   | Description                                                                                                                                                                                                                                                                                                                                                                                              |
  | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Parent Resource Path        | The parent resource path, if the resource is nested under another resource.<br /><br />**For example**: For the config resource `.../providers/Microsoft.Web/sites/mySite/config/web`, set this to `sites/mySite` (the parent's type and name); here `resourceType` is `config` and `resourceName` is `web`.<br /><br />Leave empty for top-level resources such as `Microsoft.Compute/virtualMachines`. |
  | Resource Group Name         | The name of the resource group containing the resource to get. The name is case insensitive.                                                                                                                                                                                                                                                                                                             |
  | Resource Name               | The name of the resource to get.                                                                                                                                                                                                                                                                                                                                                                         |
  | Resource Provider Namespace | The namespace of the resource provider.<br /><br />**For example**: `Microsoft.Compute`.                                                                                                                                                                                                                                                                                                                 |
  | Resource Type               | The resource type of the resource. <br /><br />**For example**: `virtualMachines`.                                                                                                                                                                                                                                                                                                                       |
  | Subscription ID             | The Microsoft Azure subscription ID.                                                                                                                                                                                                                                                                                                                                                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "/subscriptions/a303ce4e-302e-471a-8188-4dab418ce9ea/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM",
	"name": "myVM",
	"type": "Microsoft.Compute/virtualMachines",
	"location": "eastus",
	"tags": {
		"environment": "production"
	},
	"properties": {
		"provisioningState": "Succeeded"
	}
}
```

## Workflow Library Example

[Get Resource with Azure and Send Results Via Email](https://library.blinkops.com/workflows/get-resource-with-azure-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-resource-with-azure-and-send-results-via-email/canvas" />
</div>
