Adding a subscription with the CLOUD_NATIVE_ARCHIVAL_ENCRYPTION feature enabled works as advertised.
Current Behavior
Adding a subscription with the CLOUD_NATIVE_ARCHIVAL_ENCRYPTION feature enabled gives the error:
Error: failed to add subscription: failed to request addAzureCloudAccountWithoutOauth: graphql response body is an error (status code 200): INVALID_ARGUMENT: invalid request: specific_input is empty (code: 400, traceId: 6cKeNbntPA1Jt50pqf1k7A==)
My guess is that this is caused because there's no way to provide the Managed Identity that goes along with the CLOUD_NATIVE_ARCHIVAL_ENCRYPTION feature. Normally, you have to create a Managed Identity and supply its details along with the details for the CLOUD_NATIVE_ARCHIVAL_ENCRYPTION feature.
╷
│ Error: failed to add subscription: failed to request addAzureCloudAccountWithoutOauth: graphql response body is an error (status code 200): INVALID_ARGUMENT: invalid request: specific_input is empty (code: 400, traceId: 6cKeNbntPA1Jt50pqf1k7A==)
│
│ with module.polaris-azure-cloud-native_subscription_1.polaris_azure_subscription.cloud_native_archival_encryption[0],
│ on ../terraform-azure-polaris-cloud-native_subscription/main.tf line 100, in resource "polaris_azure_subscription" "cloud_native_archival_encryption":
│ 100: resource "polaris_azure_subscription" "cloud_native_archival_encryption" {
│
╵
Steps to Reproduce
See above.
Context
Version of project: v0.9.0-beta.1
Version of dependencies:
terraform init -upgrade
Initializing the backend...
Upgrading modules...
- polaris-azure-cloud-native_subscription_1 in ../terraform-azure-polaris-cloud-native_subscription
- polaris-azure-cloud-native_tenant in ../terraform-azure-polaris-cloud-native_tenant
Initializing provider plugins...
- Finding rubrikinc/polaris versions matching "0.9.0-beta.1"...
- Finding latest version of hashicorp/time...
- Finding latest version of hashicorp/azurerm...
- Finding latest version of hashicorp/azuread...
- Using previously-installed rubrikinc/polaris v0.9.0-beta.1
- Using previously-installed hashicorp/time v0.11.1
- Using previously-installed hashicorp/azurerm v3.100.0
- Using previously-installed hashicorp/azuread v2.48.0
The latest beta release (v0.9.0-beta.2) add fields for providing a managed identity for the cloud_native_archival_encryption feature. See the documentation for additional information.
Expected Behavior
Adding a subscription with the
CLOUD_NATIVE_ARCHIVAL_ENCRYPTION
feature enabled works as advertised.Current Behavior
Adding a subscription with the
CLOUD_NATIVE_ARCHIVAL_ENCRYPTION
feature enabled gives the error:My guess is that this is caused because there's no way to provide the
Managed Identity
that goes along with theCLOUD_NATIVE_ARCHIVAL_ENCRYPTION
feature. Normally, you have to create aManaged Identity
and supply its details along with the details for theCLOUD_NATIVE_ARCHIVAL_ENCRYPTION
feature.Failure Information (for bugs)
Using this code:
Gives this error:
Steps to Reproduce
See above.
Context
Failure Logs
N/A