Share via


ResourceIdBuilder.BuildCloudServiceResourceId Method

Build the resource id of the compute resource.

Namespace: Microsoft.WindowsAzure.Management.Monitoring.Utilities
Assembly: Microsoft.WindowsAzure.Management.Monitoring (in Microsoft.WindowsAzure.Management.Monitoring.dll)

Usage

'Usage
Dim cloudServiceName As String
Dim deploymentName As String
Dim roleName As String
Dim roleInstanceId As String
Dim returnValue As String

returnValue = ResourceIdBuilder.BuildCloudServiceResourceId(cloudServiceName, deploymentName, roleName, roleInstanceId)

Syntax

'Declaration
Public Shared Function BuildCloudServiceResourceId ( _
    cloudServiceName As String, _
    deploymentName As String, _
    <OptionalAttribute> Optional roleName As String = Nothing, _
    <OptionalAttribute> Optional roleInstanceId As String = Nothing _
) As String
public static string BuildCloudServiceResourceId (
    string cloudServiceName,
    string deploymentName,
    [OptionalAttribute] string roleName,
    [OptionalAttribute] string roleInstanceId
)
public:
static String^ BuildCloudServiceResourceId (
    String^ cloudServiceName, 
    String^ deploymentName, 
    [OptionalAttribute] String^ roleName, 
    [OptionalAttribute] String^ roleInstanceId
)
public static String BuildCloudServiceResourceId (
    String cloudServiceName, 
    String deploymentName, 
    /** @attribute OptionalAttribute() */ String roleName, 
    /** @attribute OptionalAttribute() */ String roleInstanceId
)
public static function BuildCloudServiceResourceId (
    cloudServiceName : String, 
    deploymentName : String, 
    roleName : String, 
    roleInstanceId : String
) : String

Parameters

  • cloudServiceName
    The cloud service name.
  • deploymentName
    The deployment name
  • roleName
    The role name.
  • roleInstanceId
    The role instance id

Return Value

The resource id.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

ResourceIdBuilder Class
ResourceIdBuilder Members
Microsoft.WindowsAzure.Management.Monitoring.Utilities Namespace