From f06c9cd7c6901db43829a5cf40ca7c13c51b7902 Mon Sep 17 00:00:00 2001 From: Xu Wu Date: Tue, 5 Mar 2024 23:05:22 +0800 Subject: [PATCH] use resource id's subscription instead of client subscriptio id (#25145) --- .../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 {