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

GuestConfigurationExtensions.GetGuestConfigurationHcrpAssignment 方法

定义

获取有关来宾配置分配的信息

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{guestConfigurationAssignmentName}
  • 操作IdGuestConfigurationHCRPAssignments_Get
public static Azure.Response<Azure.ResourceManager.GuestConfiguration.GuestConfigurationHcrpAssignmentResource> GetGuestConfigurationHcrpAssignment (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string guestConfigurationAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member GetGuestConfigurationHcrpAssignment : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.GuestConfiguration.GuestConfigurationHcrpAssignmentResource>
<Extension()>
Public Function GetGuestConfigurationHcrpAssignment (client As ArmClient, scope As ResourceIdentifier, guestConfigurationAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GuestConfigurationHcrpAssignmentResource)

参数

client
ArmClient

方法 ArmClient 将对其执行的实例。

scope
ResourceIdentifier

资源将应用于的范围。 预期的资源类型包括:Microsoft.HybridCompute/machines。

guestConfigurationAssignmentName
String

来宾配置分配名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

guestConfigurationAssignmentName 是一个空字符串,预期为非空。

guestConfigurationAssignmentName 为 null。

适用于