Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public sealed partial class ArmClientOptions : Azure.Core.ClientOptions
{
public ArmClientOptions() { }
public Azure.ResourceManager.ApiVersions ApiVersions { get { throw null; } }
public string Scope { get { throw null; } set { } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public object GetOverrideObject<T>(System.Func<object> objectConstructor) { throw null; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public ArmClient(
Credential = credential;
BaseUri = baseUri ?? new Uri(DefaultUri);
ClientOptions = options?.Clone() ?? new ArmClientOptions();
Pipeline = ManagementPipelineBuilder.Build(Credential, BaseUri, options ?? ClientOptions);
Pipeline = ManagementPipelineBuilder.Build(Credential, options.Scope, options ?? ClientOptions);

_tenant = new TenantOperations(ClientOptions, Credential, BaseUri, Pipeline);
DefaultSubscription = string.IsNullOrWhiteSpace(defaultSubscriptionId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public sealed class ArmClientOptions : ClientOptions
/// </summary>
public ApiVersions ApiVersions { get; private set; }

/// <summary>
/// Gets the ApiVersions object
/// </summary>
public string Scope { get; set; } = "https://management.core.windows.net/.default";

/// <summary>
/// Initializes a new instance of the <see cref="ArmClientOptions"/> class.
/// </summary>
Expand Down