CdnExtensions.GetProfile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group. <item> Mocking. To mock this method, please mock GetProfile(String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Cdn.ProfileResource> GetProfile(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string profileName, System.Threading.CancellationToken cancellationToken = default);
static member GetProfile : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Cdn.ProfileResource>
<Extension()>
Public Function GetProfile (resourceGroupResource As ResourceGroupResource, profileName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ProfileResource)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- profileName
- String
Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
profileName is an empty string, and was expected to be non-empty.
resourceGroupResource is null.