Upgrade deleteWorkspaces API version to 2023-09-01#29283
Merged
sreallymatt merged 1 commit intohashicorp:mainfrom Apr 11, 2025
Merged
Upgrade deleteWorkspaces API version to 2023-09-01#29283sreallymatt merged 1 commit intohashicorp:mainfrom
sreallymatt merged 1 commit intohashicorp:mainfrom
Conversation
02b6ca4 to
471af7c
Compare
sreallymatt
approved these changes
Apr 11, 2025
Collaborator
sreallymatt
left a comment
There was a problem hiding this comment.
Thanks @s4heid, unfortunately we don't have access to AzureChinaCloud or AzureUSGovernment to test there.
I have run the tests for this in our subscription and since there are no new failures introduced because of this change this LGTM.
sreallymatt
added a commit
that referenced
this pull request
Apr 11, 2025
1 task
jackofallops
added a commit
that referenced
this pull request
Apr 25, 2025
* Update CHANGELOG.md #29285, #29294 * Update CHANGELOG.md for #29307 * Update CHANGELOG.md #29283 * Update CHANGELOG.md #29271 * Update CHANGELOG.md #29298 * Update CHANGELOG.md #29278 * Update CHANGELOG.md #29341 * Update CHANGELOG.md #29328 * Update CHANGELOG.md #29292 * Update CHANGELOG.md #29361 * Update CHANGELOG.md #29296 * Update CHANGELOG.md #28239 * Update CHANGELOG.md #28974 * Update CHANGELOG.md #29254 * Update CHANGELOG.md #29333 * Update CHANGELOG.md #29314 * Update CHANGELOG.md #28929 * Update CHANGELOG.md for #29382 * Update for #28676 * Update CHANGELOG.md for #28740 * Update CHANGELOG.md for #28559 * Update CHANGELOG.md #29143 * Update CHANGELOG.md #29329 * Update CHANGELOG.md #29380 * Update CHANGELOG.md #29309 * Update CHANGELOG.md #29317 * prep for release --------- Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> Co-authored-by: kt <kt@katbyte.me> Co-authored-by: stephybun <steph@hashicorp.com> Co-authored-by: jackofallops <ste@hashicorp.com>
teowa
pushed a commit
to teowa/terraform-provider-azurerm
that referenced
this pull request
May 8, 2025
teowa
pushed a commit
to teowa/terraform-provider-azurerm
that referenced
this pull request
May 8, 2025
* Update CHANGELOG.md hashicorp#29285, hashicorp#29294 * Update CHANGELOG.md for hashicorp#29307 * Update CHANGELOG.md hashicorp#29283 * Update CHANGELOG.md hashicorp#29271 * Update CHANGELOG.md hashicorp#29298 * Update CHANGELOG.md hashicorp#29278 * Update CHANGELOG.md hashicorp#29341 * Update CHANGELOG.md hashicorp#29328 * Update CHANGELOG.md hashicorp#29292 * Update CHANGELOG.md hashicorp#29361 * Update CHANGELOG.md hashicorp#29296 * Update CHANGELOG.md hashicorp#28239 * Update CHANGELOG.md hashicorp#28974 * Update CHANGELOG.md hashicorp#29254 * Update CHANGELOG.md hashicorp#29333 * Update CHANGELOG.md hashicorp#29314 * Update CHANGELOG.md hashicorp#28929 * Update CHANGELOG.md for hashicorp#29382 * Update for hashicorp#28676 * Update CHANGELOG.md for hashicorp#28740 * Update CHANGELOG.md for hashicorp#28559 * Update CHANGELOG.md hashicorp#29143 * Update CHANGELOG.md hashicorp#29329 * Update CHANGELOG.md hashicorp#29380 * Update CHANGELOG.md hashicorp#29309 * Update CHANGELOG.md hashicorp#29317 * prep for release --------- Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> Co-authored-by: kt <kt@katbyte.me> Co-authored-by: stephybun <steph@hashicorp.com> Co-authored-by: jackofallops <ste@hashicorp.com>
Contributor
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Community Note
Description
This change upgrades the
deleteWorkspacesAPI version to2023-09-01.The current API version
2022-10-01does not supportAzureChinaCloudorAzureUSGovernmentclouds since commit 3479e73 introduced an API call to list the deleted workspaces when creating a new loganalytics workspace.PR Checklist
I have updated/added Documentation as required written in a helpful and kind way to assist users that may be unfamiliar with the resource / data source.For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
I have written new tests for my resource or datasource changes & updated any relevant documentation.I have manually tested the migration path between relevant versions of the provider.Testing
To validate my Pull Request, I have tried to create an
azurerm_log_analytics_workspaceon an AzureChinaCloud subscription with and without my changes. See the output below.Using
v4.26.0Terraform will perform the following actions:
# azurerm_log_analytics_workspace.example will be created
}
# azurerm_resource_group.example will be created
}
Plan: 2 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_resource_group.example: Creating...
azurerm_resource_group.example: Still creating... [10s elapsed]
azurerm_resource_group.example: Creation complete after 11s [id=/subscriptions/redacted/resourceGroups/rg-sh-test-terraform]
azurerm_log_analytics_workspace.example: Creating...
╷
│ Error: listing deleted Log Analytics Workspaces: unexpected status 404 (404 Not Found) with error: InvalidResourceType: The resource type 'deletedWorkspaces' could not be found in the namespace 'Microsoft.OperationalInsights' for api version '2022-10-01'. The supported api-versions are '2020-03-01-preview,2020-08-01,2020-10-01,2021-12-01-preview,2023-09-01'.
│
│ with azurerm_log_analytics_workspace.example,
│ on example.tf line 19, in resource "azurerm_log_analytics_workspace" "example":
│ 19: resource "azurerm_log_analytics_workspace" "example" {
│
╵
Using
refs/heads/deletedworkspaces-api-versionTerraform will perform the following actions:
# azurerm_log_analytics_workspace.example will be created
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_log_analytics_workspace.example: Creating...
azurerm_log_analytics_workspace.example: Still creating... [10s elapsed]
azurerm_log_analytics_workspace.example: Still creating... [20s elapsed]
azurerm_log_analytics_workspace.example: Still creating... [30s elapsed]
azurerm_log_analytics_workspace.example: Creation complete after 35s [id=/subscriptions/redacted/resourceGroups/rg-sh-test-terraform/providers/Microsoft.OperationalInsights/workspaces/example-log-analytics-workspace]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_log_analytics_workspace- support in AzureChinaCloud and AzureUSGovernment clouds.This is a (please select all that apply):
Related Issue(s)
Note
If this PR changes meaningfully during the course of review please update the title and description as required.