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 locations/diagnostics resource type can be deployed with operations that target:
- Subscription - See subscription deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/locations/diagnostics resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Compute/locations/diagnostics@2025-02-01-preview' = {
name: 'string'
// For remaining properties, see microsoft.compute/locations/diagnostics objects
}
microsoft.compute/locations/diagnostics objects
Set the name property to specify the type of object.
For diskInspection, use:
{
name: 'diskInspection'
}
For spotPlacementRecommender, use:
{
name: 'spotPlacementRecommender'
}
Property Values
Microsoft.Compute/locations/diagnostics
Name | Description | Value |
---|---|---|
name | The resource name | 'diskInspection' (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: locations |
Microsoft.Compute/locations/diagnostics
Name | Description | Value |
---|---|---|
name | The resource name | 'spotPlacementRecommender' (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: locations |
microsoft.compute/locations/diagnostics
Name | Description | Value |
---|---|---|
name | Set to 'diskInspection' for type Microsoft.Compute/locations/diagnostics. Set to 'spotPlacementRecommender' for type Microsoft.Compute/locations/diagnostics. | 'diskInspection' 'spotPlacementRecommender' (required) |
ARM template resource definition
The locations/diagnostics resource type can be deployed with operations that target:
- Subscription - See subscription deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/locations/diagnostics resource, add the following JSON to your template.
{
"name": "string"
// For remaining properties, see microsoft.compute/locations/diagnostics objects
}
microsoft.compute/locations/diagnostics objects
Set the name property to specify the type of object.
For diskInspection, use:
{
"name": "diskInspection"
}
For spotPlacementRecommender, use:
{
"name": "spotPlacementRecommender"
}
Property Values
Microsoft.Compute/locations/diagnostics
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2025-02-01-preview' |
name | The resource name | 'diskInspection' (required) |
type | The resource type | 'Microsoft.Compute/locations/diagnostics' |
Microsoft.Compute/locations/diagnostics
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2025-02-01-preview' |
name | The resource name | 'spotPlacementRecommender' (required) |
type | The resource type | 'Microsoft.Compute/locations/diagnostics' |
microsoft.compute/locations/diagnostics
Name | Description | Value |
---|---|---|
name | Set to 'diskInspection' for type Microsoft.Compute/locations/diagnostics. Set to 'spotPlacementRecommender' for type Microsoft.Compute/locations/diagnostics. | 'diskInspection' 'spotPlacementRecommender' (required) |
Usage Examples
Terraform (AzAPI provider) resource definition
The locations/diagnostics resource type can be deployed with operations that target:
- Subscription
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/locations/diagnostics resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
name = "string"
// For remaining properties, see microsoft.compute/locations/diagnostics objects
}
microsoft.compute/locations/diagnostics objects
Set the name property to specify the type of object.
For diskInspection, use:
{
name = "diskInspection"
}
For spotPlacementRecommender, use:
{
name = "spotPlacementRecommender"
}
Property Values
Microsoft.Compute/locations/diagnostics
Name | Description | Value |
---|---|---|
name | The resource name | 'diskInspection' (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: locations |
type | The resource type | "Microsoft.Compute/locations/diagnostics@2025-02-01-preview" |
Microsoft.Compute/locations/diagnostics
Name | Description | Value |
---|---|---|
name | The resource name | 'spotPlacementRecommender' (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: locations |
type | The resource type | "Microsoft.Compute/locations/diagnostics@2025-02-01-preview" |
microsoft.compute/locations/diagnostics
Name | Description | Value |
---|---|---|
name | Set to 'diskInspection' for type Microsoft.Compute/locations/diagnostics. Set to 'spotPlacementRecommender' for type Microsoft.Compute/locations/diagnostics. | 'diskInspection' 'spotPlacementRecommender' (required) |