<PackageReference Include="Azure.Core" Version="1.48.0" />

ResourceIdentifier

An Azure Resource Manager resource identifier.
public static readonly ResourceIdentifier Root

The root of the resource hierarchy.

public AzureLocation? Location { get; }

Gets the location if it exists otherwise null.

public string Name { get; }

The name of the resource.

public ResourceIdentifier Parent { get; }

The immediate parent containing this resource.

public string Provider { get; }

Gets the provider namespace if it exists otherwise null.

public string ResourceGroupName { get; }

The name of the resource group if it exists otherwise null.

public ResourceType ResourceType { get; }

The resource type of the resource.

public string SubscriptionId { get; }

Gets the subscription id if it exists otherwise null.

public ResourceIdentifier(string resourceId)

Initializes a new instance of the ResourceIdentifier class.

public static bool op_Equality(ResourceIdentifier left, ResourceIdentifier right)

Operator overloading for '=='.

public static bool op_GreaterThan(ResourceIdentifier left, ResourceIdentifier right)

Compares one ResourceIdentifier with another instance.

Compares one ResourceIdentifier with another instance.

public static string op_Implicit(ResourceIdentifier id)

Convert a resource identifier to a string.

public static bool op_Inequality(ResourceIdentifier left, ResourceIdentifier right)

Operator overloading for '!='.

public static bool op_LessThan(ResourceIdentifier left, ResourceIdentifier right)

Compares one ResourceIdentifier with another instance.

Compares one ResourceIdentifier with another instance.

public static ResourceIdentifier Parse(string input)

Converts the string representation of a ResourceIdentifier to the equivalent ResourceIdentifier structure.

public static bool TryParse(string input, out ResourceIdentifier result)

Converts the string representation of a ResourceIdentifier to the equivalent ResourceIdentifier structure.

public ResourceIdentifier AppendChildResource(string childResourceType, string childResourceName)

Add a provider resource to an existing resource id.

public ResourceIdentifier AppendProviderResource(string providerNamespace, string resourceType, string resourceName)

Add a provider resource to an existing resource id.

public int CompareTo(ResourceIdentifier other)

Compre this resource identifier to the given resource identifier.

public bool Equals(ResourceIdentifier other)

Determine if this resource identifier is equivalent to the given resource identifier.