Share via


AzureResource Class

Definition

An Azure resource object.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AzureResourceTypeConverter))]
public class AzureResource : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAzureResource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AzureResourceTypeConverter))>]
type AzureResource = class
    interface IAzureResource
    interface IJsonSerializable
Public Class AzureResource
Implements IAzureResource
Inheritance
AzureResource
Attributes
Implements

Constructors

AzureResource()

Creates an new AzureResource instance.

Properties

Id

The resource Id.

Location

The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

Name

The name of the resource.

Tag

The tags of the resource.

Type

The type of the resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of AzureResource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of AzureResource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAzureResource.

FromJsonString(String)

Creates a new instance of AzureResource, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of AzureResource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to