diff --git a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/AzureProfile.java b/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/AzureProfile.java deleted file mode 100644 index ebafb33eb7df..000000000000 --- a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/AzureProfile.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.resourcemanager.resources.fluentcore.profile; - -import com.azure.core.management.AzureEnvironment; -import com.azure.core.util.Configuration; - -import java.util.Objects; - -/** - * Azure profile for client. - */ -public class AzureProfile { - - private final String tenantId; - private final String subscriptionId; - private final AzureEnvironment environment; - - /** - * Creates AzureProfile instance with Azure environment. The global environment is {@link AzureEnvironment#AZURE}. - * The tenant ID and subscription ID can be set via environment variables. The environment variables are expected - * as below: - * - * - * @param environment the Azure environment - */ - public AzureProfile(AzureEnvironment environment) { - Objects.requireNonNull(environment); - this.environment = environment; - Configuration configuration = Configuration.getGlobalConfiguration(); - this.tenantId = configuration.get(Configuration.PROPERTY_AZURE_TENANT_ID); - this.subscriptionId = configuration.get(Configuration.PROPERTY_AZURE_SUBSCRIPTION_ID); - } - - /** - * Creates AzureProfile instance with tenant ID, subscription ID and Azure environment. - * The global environment is {@link AzureEnvironment#AZURE}. - * - * @param tenantId the tenant ID required for Graph Rbac - * @param subscriptionId the subscription ID required for resource management - * @param environment the Azure environment - */ - public AzureProfile(String tenantId, String subscriptionId, AzureEnvironment environment) { - Objects.requireNonNull(environment); - this.tenantId = tenantId; - this.subscriptionId = subscriptionId; - this.environment = environment; - } - - /** - * Gets tenant ID. - * - * @return the tenant ID - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Gets subscription ID. - * - * @return the subscription ID - */ - public String subscriptionId() { - return this.subscriptionId; - } - - /** - * Gets Azure environment. - * - * @return the Azure environment - */ - public AzureEnvironment environment() { - return environment; - } -} diff --git a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/package-info.java b/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/package-info.java deleted file mode 100644 index 6472c0e99009..000000000000 --- a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/profile/package-info.java +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. - -/** - * This package contains the base classes for resources azure profile. - */ -package com.azure.resourcemanager.resources.fluentcore.profile;