Refreshing Terraform state prior to plan...
Error refreshing state: 1 error(s) occurred:
* autorest:DoErrorUnlessStatusCode 403 POST https://management.azure.com/subscriptions/<subscription_id>/providers/Microsoft.Network/register?api-version=2014-04-01-preview failed with 403 Forbidden
* Trying 65.52.117.246...* Connected to management.azure.com (65.52.117.246) port 443 (#0)* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384* Server certificate: management.azure.com* Server certificate: Microsoft IT SSL SHA2* Server certificate: Baltimore CyberTrust Root> GET /subscriptions/<subscription_id>/providers/Microsoft.Network/register?api-version=2014-04-01-preview HTTP/1.1> Host: management.azure.com> User-Agent: curl/7.43.0> Accept: */*> < HTTP/1.1 401 UnauthorizedHTTP/1.1 401 Unauthorized< Cache-Control: no-cacheCache-Control: no-cache< Pragma: no-cachePragma: no-cache< Content-Type: application/json; charset=utf-8Content-Type: application/json; charset=utf-8< Expires: -1Expires: -1< WWW-Authenticate: Bearer authorization_uri="https://login.windows.net/<tenant_id>", error="invalid_token", error_description="The authentication failed because of missing 'Authorization' header."WWW-Authenticate: Bearer authorization_uri="https://login.windows.net/<tenant_id>", error="invalid_token", error_description="The authentication failed because of missing 'Authorization' header."< x-ms-failure-cause: gatewayx-ms-failure-cause: gateway< x-ms-request-id: fa3ff40a-2718-4232-8890-0d6c5fd52b43x-ms-request-id: fa3ff40a-2718-4232-8890-0d6c5fd52b43< x-ms-correlation-request-id: fa3ff40a-2718-4232-8890-0d6c5fd52b43x-ms-correlation-request-id: fa3ff40a-2718-4232-8890-0d6c5fd52b43< x-ms-routing-request-id: WESTUS:20160302T071506Z:fa3ff40a-2718-4232-8890-0d6c5fd52b43x-ms-routing-request-id: WESTUS:20160302T071506Z:fa3ff40a-2718-4232-8890-0d6c5fd52b43< Strict-Transport-Security: max-age=31536000; includeSubDomainsStrict-Transport-Security: max-age=31536000; includeSubDomains< Date: Wed, 02 Mar 2016 07:15:05 GMTDate: Wed, 02 Mar 2016 07:15:05 GMT< Connection: closeConnection: close< Content-Length: 115Content-Length: 115
< * Closing connection 0{"error":{"code":"AuthenticationFailed","message":"Authentication failed. The 'Authorization' header is missing."}}register?api-version=2014-04-01-preview