From 6046acc6406667bc0b68d0a50f3f09ff4469457f Mon Sep 17 00:00:00 2001 From: xuwu1 Date: Tue, 5 Mar 2024 14:46:23 +0800 Subject: [PATCH] use resource id's subscription instead of client subscriptio id --- .../firewall/firewall_policy_rule_collection_group_resource.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/services/firewall/firewall_policy_rule_collection_group_resource.go b/internal/services/firewall/firewall_policy_rule_collection_group_resource.go index 8ebba0175eb9..0fee9ebbd88a 100644 --- a/internal/services/firewall/firewall_policy_rule_collection_group_resource.go +++ b/internal/services/firewall/firewall_policy_rule_collection_group_resource.go @@ -509,7 +509,6 @@ func resourceFirewallPolicyRuleCollectionGroupCreateUpdate(d *pluginsdk.Resource } func resourceFirewallPolicyRuleCollectionGroupRead(d *pluginsdk.ResourceData, meta interface{}) error { - subscriptionId := meta.(*clients.Client).Account.SubscriptionId client := meta.(*clients.Client).Network.FirewallPolicyRuleCollectionGroups ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -531,7 +530,7 @@ func resourceFirewallPolicyRuleCollectionGroupRead(d *pluginsdk.ResourceData, me } d.Set("name", id.RuleCollectionGroupName) - d.Set("firewall_policy_id", firewallpolicies.NewFirewallPolicyID(subscriptionId, id.ResourceGroupName, id.FirewallPolicyName).ID()) + d.Set("firewall_policy_id", firewallpolicies.NewFirewallPolicyID(id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName).ID()) if model := resp.Model; model != nil { if props := model.Properties; props != nil {