Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yupwei68 committed Jul 9, 2020
1 parent fd0609b commit 8273a75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func resourceArmApiManagementServiceRead(d *schema.ResourceData, meta interface{
return fmt.Errorf("making Read request on API Management Service %q (Resource Group %q): %+v", name, resourceGroup, err)
}

if resp.VirtualNetworkType != apimanagement.VirtualNetworkTypeInternal {
if resp.ServiceProperties != nil && resp.ServiceProperties.VirtualNetworkType != apimanagement.VirtualNetworkTypeInternal {
signInClient := meta.(*clients.Client).ApiManagement.SignInClient
signInSettings, err := signInClient.Get(ctx, resourceGroup, name)
if err != nil {
Expand Down

0 comments on commit 8273a75

Please sign in to comment.