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

Invalid XML when creating opsmanagerimage #67

Closed
skmichaelson opened this issue Jul 25, 2019 · 2 comments
Closed

Invalid XML when creating opsmanagerimage #67

skmichaelson opened this issue Jul 25, 2019 · 2 comments
Labels

Comments

@skmichaelson
Copy link

We're noticing an invisible character being added to the beginning of our XML file for creating zurerm_storage_container.ops_manager_storage_container. We don't know if this is an issue with our usage or a bug in this repo.

We're using a docker image for terraform: ljfranklin/terraform-resource@0.11.14�.

As a side note, terraforming-aws and terraforming-gcp works for us with no issues.

1 error occurred:
	* module.ops_manager.azurerm_storage_container.ops_manager_storage_container: 1 error occurred:
	* azurerm_storage_container.ops_manager_storage_container: Error creating Container "" (Account "ulpv8lqorij34bk16yoc" / Resource Group "leather-snapper"): containers.Client#Create: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:d1da942b-c01c-0068-454e-42c3df000000\nTime:2019-07-24T18:33:09.9798730Z</Message></Error>" error: invalid character 'ï' looking for beginning of value
@skmichaelson
Copy link
Author

This may be related to the following deprecation warnings:

Warning: module.infra.azurerm_storage_container.bosh_storage_container: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider

Warning: module.infra.azurerm_storage_container.stemcell_storage_container: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider

Warning: module.infra.azurerm_storage_table.stemcells_storage_table: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider

Warning: module.infra.azurerm_subnet.infrastructure_subnet: "network_security_group_id": [DEPRECATED] Use the `azurerm_subnet_network_security_group_association` resource instead.

Warning: module.ops_manager.azurerm_storage_container.ops_manager_storage_container: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider

@ciphercules
Copy link
Contributor

Hi @skmichaelson, thanks for bringing this to our attention. The deprecation warnings are a bit of a red herring, as they're really about getting the templates ready to support the Azure provider version 2.0, which hasn't been released yet.

We discovered that we were getting permissions issues trying to create the storage account as a Premium account, so we switched to standard:

resource "azurerm_storage_account" "ops_manager_storage_account" {
  name                     = "${random_string.ops_manager_storage_account_name.result}"
  resource_group_name      = "${var.resource_group_name}"
  location                 = "${var.location}"
  account_tier             = "Standard"
  account_replication_type = "LRS"

  tags = {
    environment = "${var.env_name}"
    account_for = "ops-manager"
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants