VirtualMachineScaleSetCollection.Exists メソッド

定義

リソースが Azure に存在するかどうかを確認します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}
  • 操作IdVirtualMachineScaleSets_Get
public virtual Azure.Response<bool> Exists (string virtualMachineScaleSetName, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetGetExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : string * Nullable<Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetGetExpand> * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : string * Nullable<Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetGetExpand> * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (virtualMachineScaleSetName As String, Optional expand As Nullable(Of VirtualMachineScaleSetGetExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

パラメーター

virtualMachineScaleSetName
String

VM スケール セットの名前。

expand
Nullable<VirtualMachineScaleSetGetExpand>

操作に適用する展開式。 'UserData' は、VM スケール セットの作成/更新操作中にユーザーによって提供された VM スケール セットの UserData プロパティを取得します。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

virtualMachineScaleSetName は空の文字列であり、空でないと予想されていました。

virtualMachineScaleSetName が null です。

適用対象