Share via


ServiceFabricExtensions.GetServiceFabricVmSizeResource Method

Definition

Overloads

GetServiceFabricVmSizeResource(ArmClient, ResourceIdentifier)

Gets an object representing a ServiceFabricVmSizeResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, AzureLocation, String) to create a ServiceFabricVmSizeResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetServiceFabricVmSizeResource(ResourceIdentifier) instead.

GetServiceFabricVmSizeResource(SubscriptionResource, AzureLocation, String, CancellationToken)

Get unsupported vm size for Service Fabric Clusters.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/unsupportedVmSizes/{vmSize}
  • Operation Id: UnsupportedVmSizes_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: ServiceFabricVmSizeResource

GetServiceFabricVmSizeResource(ArmClient, ResourceIdentifier)

Source:
ServiceFabricExtensions.cs

Gets an object representing a ServiceFabricVmSizeResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, AzureLocation, String) to create a ServiceFabricVmSizeResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetServiceFabricVmSizeResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.ServiceFabric.ServiceFabricVmSizeResource GetServiceFabricVmSizeResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetServiceFabricVmSizeResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.ServiceFabric.ServiceFabricVmSizeResource
<Extension()>
Public Function GetServiceFabricVmSizeResource (client As ArmClient, id As ResourceIdentifier) As ServiceFabricVmSizeResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a ServiceFabricVmSizeResource object.

Exceptions

client is null.

Applies to

GetServiceFabricVmSizeResource(SubscriptionResource, AzureLocation, String, CancellationToken)

Source:
ServiceFabricExtensions.cs

Get unsupported vm size for Service Fabric Clusters.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/unsupportedVmSizes/{vmSize}
  • Operation Id: UnsupportedVmSizes_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: ServiceFabricVmSizeResource
public static Azure.Response<Azure.ResourceManager.ServiceFabric.ServiceFabricVmSizeResource> GetServiceFabricVmSizeResource (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string vmSize, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceFabricVmSizeResource : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ServiceFabric.ServiceFabricVmSizeResource>
<Extension()>
Public Function GetServiceFabricVmSizeResource (subscriptionResource As SubscriptionResource, location As AzureLocation, vmSize As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ServiceFabricVmSizeResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

location
AzureLocation

The location parameter.

vmSize
String

VM Size name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or vmSize is null.

vmSize is an empty string, and was expected to be non-empty.

Applies to