diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ContainerBase.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ContainerBase.cs index 89760db2c4110..74f5ad739b675 100644 --- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/ContainerBase.cs +++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/ContainerBase.cs @@ -1,6 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; +using Azure.Core; +using Azure.Core.Pipeline; + namespace Azure.ResourceManager.Core { /// @@ -34,6 +38,18 @@ internal ContainerBase(ClientContext clientContext, ResourceIdentifier id) { } + /// + /// Initializes a new instance of the class. + /// + /// The options to use. + /// The credential to use. + /// The base uri to use. + /// The http pipeline policy to use. + protected ContainerBase(ArmClientOptions options, TokenCredential credential, Uri baseUri, HttpPipeline pipeline) + : this(new ClientContext(options, credential, baseUri, pipeline)) + { + } + /// /// Initializes a new instance of the class. ///