你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourceIdHelper Class

Definition

Helper methods related to resource ID manipulation.

public class ResourceIdHelper
type ResourceIdHelper = class
Public Class ResourceIdHelper
Inheritance
ResourceIdHelper

Constructors

ResourceIdHelper()

Methods

GetManagementGroupScope(String)

Gets a management group scope.

GetResourceGroupScope(String, String)

Gets a resource group scope.

GetResourceName(String)

Gets the resource name of a specified type from a full resource ID.

GetRootScope(String, String)

Gets the segments of a resource ID that occur before a given fully qualified resource type. E.g. "/subscriptions/{subId}" for an input of "/subscriptions/{subId}/Microsoft.PolicyInsights/remediations/foo".

GetSubscriptionScope(String)

Gets a subscription scope

Applies to