Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The privilegedResourceFavorites resource type can be deployed with operations that target:
- Tenant - See tenant deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Authorization/privilegedResourceFavorites resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Authorization/privilegedResourceFavorites@2026-06-01-preview' = {
name: 'string'
properties: {
resourceId: 'string'
}
}
Property Values
Microsoft.Authorization/privilegedResourceFavorites
| Name | Description | Value |
|---|---|---|
| name | The resource name | string Constraints: Pattern = ^[A-Za-z0-9_-]{1,2048}$ (required) |
| properties | The resource-specific properties for this resource. | PrivilegedResourceFavoriteProperties |
PrivilegedResourceFavoriteProperties
| Name | Description | Value |
|---|---|---|
| resourceId | The favorited Azure resource id. The favoriteId URL segment MUST equalbase64url(lowercased(resourceId)); the service rejects mismatches with400 InvalidRequest on PUT.Effectively immutable: set on create and never changed afterward — there is no PATCH, and PUT validates the favoriteId-from-resourceId derivation. |
string (required) |
ARM template resource definition
The privilegedResourceFavorites resource type can be deployed with operations that target:
- Tenant - See tenant deployment commands For a list of changed properties in each API version, see change log.
Usage Examples
Resource format
To create a Microsoft.Authorization/privilegedResourceFavorites resource, add the following JSON to your template.
{
"type": "Microsoft.Authorization/privilegedResourceFavorites",
"apiVersion": "2026-06-01-preview",
"name": "string",
"properties": {
"resourceId": "string"
}
}
Property Values
Microsoft.Authorization/privilegedResourceFavorites
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2026-06-01-preview' |
| name | The resource name | string Constraints: Pattern = ^[A-Za-z0-9_-]{1,2048}$ (required) |
| properties | The resource-specific properties for this resource. | PrivilegedResourceFavoriteProperties |
| type | The resource type | 'Microsoft.Authorization/privilegedResourceFavorites' |
PrivilegedResourceFavoriteProperties
| Name | Description | Value |
|---|---|---|
| resourceId | The favorited Azure resource id. The favoriteId URL segment MUST equalbase64url(lowercased(resourceId)); the service rejects mismatches with400 InvalidRequest on PUT.Effectively immutable: set on create and never changed afterward — there is no PATCH, and PUT validates the favoriteId-from-resourceId derivation. |
string (required) |
Terraform (AzAPI provider) resource definition
The privilegedResourceFavorites resource type can be deployed with operations that target:
- Tenant For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Authorization/privilegedResourceFavorites resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Authorization/privilegedResourceFavorites@2026-06-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
resourceId = "string"
}
}
}
Property Values
Microsoft.Authorization/privilegedResourceFavorites
| Name | Description | Value |
|---|---|---|
| name | The resource name | string Constraints: Pattern = ^[A-Za-z0-9_-]{1,2048}$ (required) |
| properties | The resource-specific properties for this resource. | PrivilegedResourceFavoriteProperties |
| type | The resource type | "Microsoft.Authorization/privilegedResourceFavorites@2026-06-01-preview" |
PrivilegedResourceFavoriteProperties
| Name | Description | Value |
|---|---|---|
| resourceId | The favorited Azure resource id. The favoriteId URL segment MUST equalbase64url(lowercased(resourceId)); the service rejects mismatches with400 InvalidRequest on PUT.Effectively immutable: set on create and never changed afterward — there is no PATCH, and PUT validates the favoriteId-from-resourceId derivation. |
string (required) |