Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump azure-sdk-for-go/recoveryservices from 2018-01-10 to 2018-07-10 #10373

Merged
merged 7 commits into from
Feb 2, 2021

Conversation

MitchDrage
Copy link
Contributor

As part of feature request 8837 an update to the azure-sdk-for-go/recoveryservices sdk is required to provide access to the RecoveryPublicIPAddressID model that isn't present in the current version (2018-01-10).

See gist for test results using the new tests pushed in v2.45 (in this pull).

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@tombuildsstuff
Copy link
Contributor

Running the tests for this, it looks like the newer API is returning a 400 rather than a 404 when the Network Mapping doesn't exist:

Error checking for presence of existing site recovery fabric acctest-fabric1-210201093520393071 (vault acctest-vault-210201093520393071): siterecovery.ReplicationFabricsClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The resource with ID 2195638768288125375 isn't registered with the service." Details=[{"activityId":"689647ac-7f72-7f8b-e344-93183a09e18a","clientRequestId":"6cac2a93-9f39-48f7-abb8-a62785eeaf97","code":"SubscriptionIdNotRegisteredWithSrs","message":"The resource with ID 2195638768288125375 isn't registered with the service.","possibleCauses":"The operation failed due to an internal error.","recommendedAction":"Retry the last action. If the issue persists, contact Support."}]

So we'll need to update the Requires Import check to check for a 400 in addition to a 404 here

@tombuildsstuff
Copy link
Contributor

tombuildsstuff commented Feb 1, 2021

Upstream issue: Azure/azure-rest-api-specs#12759 - pushed a commit to work around this in the interim

@katbyte
Copy link
Collaborator

katbyte commented Feb 2, 2021

Checking historical test runs that issue seems to predate the API upgrade - as such going to merge

@katbyte katbyte merged commit d6c0321 into hashicorp:master Feb 2, 2021
katbyte added a commit that referenced this pull request Feb 2, 2021
@ghost
Copy link

ghost commented Feb 5, 2021

This has been released in version 2.46.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.46.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Mar 4, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants