ISupportsListingInResourceGroupByTag<T>.ListByTagAsync(String, String, String, Boolean, CancellationToken) Method

Definition

Lists all the resources with the specified tag.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<T>> ListByTagAsync (string resourceGroupName, string tagName, string tagValue, bool loadAllPages = true, System.Threading.CancellationToken cancellationToken = null);
abstract member ListByTagAsync : string * string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<'T>>

Parameters

resourceGroupName
System.String

The name of the resource group to list the resources from.

tagName
System.String

tag's name as the key

tagValue
System.String

tag's value

loadAllPages
System.Boolean

Specify true to load all pages, false to get paginated result

cancellationToken
System.Threading.CancellationToken

cancellationToken the cancellation token

Returns

System.Threading.Tasks.Task<IPagedCollection<T>>

Applies to