B
Beacon Globe News

Class DevTestLabServiceFabricResource | Azure SDK for .NET

Author

Andrew Vasquez

Published Feb 17, 2026

A Class representing a DevTestLabServiceFabric along with the instance operations that can be performed on it. If you have a Azure.Core.ResourceIdentifier you can construct a DevTestLabServiceFabricResourcefrom an instance of Azure.ResourceManager.ArmClient using the GetDevTestLabServiceFabricResource method. Otherwise you can get one from its parent resource DevTestLabUserResource using the GetDevTestLabServiceFabric method.

Inheritance

Azure.ResourceManager.ArmResource

DevTestLabServiceFabricResource

Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.DevTestLabs.dll
Syntax
public class DevTestLabServiceFabricResource : Azure.ResourceManager.ArmResource

Constructors

DevTestLabServiceFabricResource()

Declaration
protected DevTestLabServiceFabricResource ();

Fields

ResourceType

Gets the resource type for the operations.

Declaration
public static readonly Azure.Core.ResourceType ResourceType;
Field Value
Azure.Core.ResourceType

Properties

Data

Gets the data representing this Feature.

Declaration
public virtual Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricData Data { get; }
Property Value
Exceptions
System.InvalidOperationException

Throws if there is no data loaded in the current instance.

HasData

Gets whether or not the current instance has data.

Declaration
public virtual bool HasData { get; }
Property Value
System.Boolean

Methods

AddTag(String, String, CancellationToken)

Add a tag to the current resource. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Get

Declaration
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource> AddTag (string key, string value, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String key

The key for the tag.

System.String value

The value for the tag.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentNullException

key or value is null.

AddTagAsync(String, String, CancellationToken)

Add a tag to the current resource. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Get

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource>> AddTagAsync (string key, string value, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String key

The key for the tag.

System.String value

The value for the tag.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentNullException

key or value is null.

CreateResourceIdentifier(String, String, String, String, String)

Declaration
public static Azure.Core.ResourceIdentifier CreateResourceIdentifier (string subscriptionId, string resourceGroupName, string labName, string userName, string name);
Parameters
System.String subscriptionId
System.String resourceGroupName
System.String labName
System.String userName
System.String name
Returns
Azure.Core.ResourceIdentifier

Delete(WaitUntil, CancellationToken)

Delete service fabric. This operation can take a while to complete. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Delete

Declaration
public virtual Azure.ResourceManager.ArmOperation Delete (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil waitUntil

Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Azure.ResourceManager.ArmOperation

DeleteAsync(WaitUntil, CancellationToken)

Delete service fabric. This operation can take a while to complete. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Delete

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DeleteAsync (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil waitUntil

Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>

Get(String, CancellationToken)

Get service fabric. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Get

Declaration
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource> Get (string expand = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String expand

Specify the $expand query. Example: 'properties($expand=applicableSchedule)'.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns

GetApplicableSchedules(CancellationToken)

Lists the applicable start/stop schedules, if any. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_ListApplicableSchedules

Declaration
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabApplicableSchedule> GetApplicableSchedules (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns

GetApplicableSchedulesAsync(CancellationToken)

Lists the applicable start/stop schedules, if any. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_ListApplicableSchedules

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabApplicableSchedule>> GetApplicableSchedulesAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns

GetAsync(String, CancellationToken)

Get service fabric. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Get

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource>> GetAsync (string expand = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String expand

Specify the $expand query. Example: 'properties($expand=applicableSchedule)'.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns

GetDevTestLabServiceFabricSchedule(String, String, CancellationToken)

Get schedule. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabricSchedules_Get

Declaration
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricScheduleResource> GetDevTestLabServiceFabricSchedule (string name, string expand = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String name

The name of the schedule.

System.String expand

Specify the $expand query. Example: 'properties($select=status)'.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentException

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

System.ArgumentNullException

name is null.

GetDevTestLabServiceFabricScheduleAsync(String, String, CancellationToken)

Get schedule. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabricSchedules_Get

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricScheduleResource>> GetDevTestLabServiceFabricScheduleAsync (string name, string expand = null, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String name

The name of the schedule.

System.String expand

Specify the $expand query. Example: 'properties($select=status)'.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentException

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

System.ArgumentNullException

name is null.

GetDevTestLabServiceFabricSchedules()

Gets a collection of DevTestLabServiceFabricScheduleResources in the DevTestLabServiceFabric.

Declaration
public virtual Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricScheduleCollection GetDevTestLabServiceFabricSchedules ();
Returns

RemoveTag(String, CancellationToken)

Removes a tag by key from the resource. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Get

Declaration
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource> RemoveTag (string key, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String key

The key for the tag.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentNullException

key is null.

RemoveTagAsync(String, CancellationToken)

Removes a tag by key from the resource. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Get

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource>> RemoveTagAsync (string key, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String key

The key for the tag.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentNullException

key is null.

SetTags(IDictionary<String,String>, CancellationToken)

SetTagsAsync(IDictionary<String,String>, CancellationToken)

Start(WaitUntil, CancellationToken)

Start a service fabric. This operation can take a while to complete. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Start

Declaration
public virtual Azure.ResourceManager.ArmOperation Start (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil waitUntil

Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Azure.ResourceManager.ArmOperation

StartAsync(WaitUntil, CancellationToken)

Start a service fabric. This operation can take a while to complete. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Start

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> StartAsync (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil waitUntil

Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>

Stop(WaitUntil, CancellationToken)

Stop a service fabric This operation can take a while to complete. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Stop

Declaration
public virtual Azure.ResourceManager.ArmOperation Stop (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil waitUntil

Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Azure.ResourceManager.ArmOperation

StopAsync(WaitUntil, CancellationToken)

Stop a service fabric This operation can take a while to complete. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Stop

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> StopAsync (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil waitUntil

Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>

Update(DevTestLabServiceFabricPatch, CancellationToken)

Allows modifying tags of service fabrics. All other properties will be ignored. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Update

Declaration
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource> Update (Azure.ResourceManager.DevTestLabs.Models.DevTestLabServiceFabricPatch patch, System.Threading.CancellationToken cancellationToken = null);
Parameters
Returns
Exceptions
System.ArgumentNullException

patch is null.

UpdateAsync(DevTestLabServiceFabricPatch, CancellationToken)

Allows modifying tags of service fabrics. All other properties will be ignored. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ Operation Id: ServiceFabrics_Update

Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabServiceFabricResource>> UpdateAsync (Azure.ResourceManager.DevTestLabs.Models.DevTestLabServiceFabricPatch patch, System.Threading.CancellationToken cancellationToken = null);
Parameters
Returns
Exceptions
System.ArgumentNullException

patch is null.