Skip to content

Instantly share code, notes, and snippets.

@ameukam
Last active April 9, 2020 19:35
Show Gist options
  • Save ameukam/b60ff5ee9c1ee28c92370a95bf9b2a8f to your computer and use it in GitHub Desktop.
Save ameukam/b60ff5ee9c1ee28c92370a95bf9b2a8f to your computer and use it in GitHub Desktop.
urllib3.connectionpool : Starting new HTTPS connection (1): copreprodew1fileshare.file.core.windows.net:443
urllib3.connectionpool : https://copreprodew1fileshare.file.core.windows.net:443 "PUT /co-preprod-ew1-share0?restype=share HTTP/1.1" 403 246
azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=772d498a-7a67-11ea-a5cf-94b86d621c45 Receiving Response: Server-Timestamp=Thu, 09 Apr 2020 13:38:58 GMT, Server-Request-ID=ef9cb225-801a-00df-4c74-0e2efb000000, HTTP Status Code=403, Message=This request is not authorized to perform this operation., Headers={'content-length': '246', 'content-type': 'application/xml', 'server': 'Microsoft-HTTPAPI/2.0', 'x-ms-request-id': 'ef9cb225-801a-00df-4c74-0e2efb000000', 'x-ms-error-code': 'AuthorizationFailure', 'date': 'Thu, 09 Apr 2020 13:38:58 GMT'}.
azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=772d498a-7a67-11ea-a5cf-94b86d621c45 Operation failed: checking if the operation should be retried. Current retry count=0, Server-Timestamp=Thu, 09 Apr 2020 13:38:58 GMT, Server-Request-ID=ef9cb225-801a-00df-4c74-0e2efb000000, HTTP status code=403, Exception=This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationFailure</Code><Message>This request is not authorized to perform this operation.RequestId:ef9cb225-801a-00df-4c74-0e2efb000000Time:2020-04-09T13:38:59.1899803Z</Message></Error>.
azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=772d498a-7a67-11ea-a5cf-94b86d621c45 Retry policy did not allow for a retry: Server-Timestamp=Thu, 09 Apr 2020 13:38:58 GMT, Server-Request-ID=ef9cb225-801a-00df-4c74-0e2efb000000, HTTP status code=403, Exception=This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationFailure</Code><Message>This request is not authorized to perform this operation.RequestId:ef9cb225-801a-00df-4c74-0e2efb000000Time:2020-04-09T13:38:59.1899803Z</Message></Error>.
cli.azure.cli.core.util : This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationFailure</Code><Message>This request is not authorized to perform this operation.
RequestId:ef9cb225-801a-00df-4c74-0e2efb000000
Time:2020-04-09T13:38:59.1899803Z</Message></Error>
This request is not authorized to perform this operation. ErrorCode: AuthorizationFailure
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationFailure</Code><Message>This request is not authorized to perform this operation.
RequestId:ef9cb225-801a-00df-4c74-0e2efb000000
Time:2020-04-09T13:38:59.1899803Z</Message></Error>
resource "random_string" "randomstring" {
length = 3
special = false
upper = false
}
resource "azurerm_storage_account" "fileshare-st" {
name = "${var.digram}${var.env}${var.location-prefix}fileshare"
resource_group_name = data.azurerm_resource_group.rg.name
location = data.azurerm_resource_group.rg.location
account_kind = "FileStorage"
account_replication_type = "LRS"
account_tier = "Premium"
network_rules {
default_action = "Deny"
virtual_network_subnet_ids = module.vnet-test.vnet_subnets
}
}
resource "azurerm_storage_share" "storage" {
name = "${azurerm_storage_account.fileshare-st.name}${random_string.randomstring.result}"
storage_account_name = azurerm_storage_account.fileshare-st.name
quota = var.st_share_quota
}
azurerm_storage_share.storage: Creating...
Error: Error checking for existence of existing Storage Share "copreprodew1fileshare9uz" (Account "copreprodew1fileshare" / Resource Group "co-preprod-ew1-rg"): shares.Client#GetProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailure" Message="This request is not authorized to perform this operation.\nRequestId:49e849e0-e01a-00e6-4f70-0ed5e7000000\nTime:2020-04-09T13:09:03.6765110Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment