From a9c691e3df0c03e296366771e9d2aafe0da8a002 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Fri, 12 Jun 2020 19:01:58 +0100 Subject: [PATCH] Breaking: remove subscription_id from data.azuread_client_config --- azuread/data_client_config.go | 6 ------ azuread/data_client_config_test.go | 2 -- 2 files changed, 8 deletions(-) diff --git a/azuread/data_client_config.go b/azuread/data_client_config.go index 4e83223887..c897758e15 100644 --- a/azuread/data_client_config.go +++ b/azuread/data_client_config.go @@ -26,11 +26,6 @@ func dataClientConfig() *schema.Resource { Computed: true, }, - "subscription_id": { - Type: schema.TypeString, - Computed: true, - }, - "object_id": { Type: schema.TypeString, Computed: true, @@ -62,7 +57,6 @@ func dataSourceArmClientConfigRead(d *schema.ResourceData, meta interface{}) err d.SetId(time.Now().UTC().String()) d.Set("client_id", client.clientID) d.Set("object_id", client.objectID) - d.Set("subscription_id", client.subscriptionID) d.Set("tenant_id", client.tenantID) return nil diff --git a/azuread/data_client_config_test.go b/azuread/data_client_config_test.go index 43fe91afb9..c94daa6a67 100644 --- a/azuread/data_client_config_test.go +++ b/azuread/data_client_config_test.go @@ -13,7 +13,6 @@ func TestAccClientConfigDataSource_basic(t *testing.T) { dsn := "data.azuread_client_config.current" clientId := os.Getenv("ARM_CLIENT_ID") tenantId := os.Getenv("ARM_TENANT_ID") - subscriptionId := os.Getenv("ARM_SUBSCRIPTION_ID") resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -24,7 +23,6 @@ func TestAccClientConfigDataSource_basic(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(dsn, "client_id", clientId), resource.TestCheckResourceAttr(dsn, "tenant_id", tenantId), - resource.TestCheckResourceAttr(dsn, "subscription_id", subscriptionId), testAzureRMClientConfigGUIDAttr(dsn, "object_id"), ), },