Skip to content

Commit

Permalink
Merge pull request #4746 from sigv/origin/storage_account-atp_germany2
Browse files Browse the repository at this point in the history
storage_account: Fix Advanced Threat Protection matching for Azure Germany
  • Loading branch information
tombuildsstuff committed Oct 29, 2019
2 parents d871da1 + fbd088d commit adc4d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_storage_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ func resourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) err
atp, err := advancedThreatProtectionClient.Get(ctx, d.Id())
if err != nil {
msg := err.Error()
if msg != "The resource namespace 'Microsoft.Security' is invalid." {
if !strings.Contains(msg, "The resource namespace 'Microsoft.Security' is invalid.") {
if !strings.Contains(msg, "No registered resource provider found for location '") {
if !strings.Contains(msg, "' and API version '2017-08-01-preview' for type ") {
return fmt.Errorf("Error reading the advanced threat protection settings of AzureRM Storage Account %q: %+v", name, err)
Expand Down

0 comments on commit adc4d47

Please sign in to comment.