Class ArmClientOptions
- Namespace
- Azure.ResourceManager
- Assembly
- Azure.ResourceManager.dll
A class representing Azure resource manager client options.
public sealed class ArmClientOptions : ClientOptions
- Inheritance
-
ArmClientOptions
Constructors
ArmClientOptions()
public ArmClientOptions()
Properties
Environment
Gets or sets Azure cloud environment.
public ArmEnvironment? Environment { get; set; }
Property Value
Methods
SetApiVersion(ResourceType, string)
Sets the api version to use for a given resource type. To find which API Versions are available in your environment you can use the Get(string, CancellationToken) method for the provider namespace you are interested in.
public void SetApiVersion(ResourceType resourceType, string apiVersion)
Parameters
resourceType
ResourceTypeThe resource type to set the version for. To determine the appropriate value, you can refer to the corresponding documentation or XML documentation comments of the API. Then, get its resource type from the Resource's ResourceType field.
apiVersion
stringThe api version to use.
SetApiVersionsFromProfile(AzureStackProfile)
Sets the api versions from an Azure Stack profile.
public void SetApiVersionsFromProfile(AzureStackProfile profile)
Parameters
profile
AzureStackProfile