Skip to content

devtunnel expiration date set to 4d #651

@slawro

Description

@slawro

new created devtunnel is set to 4d expiration date even if command call is devtunnel create --expiration 30d

MSAL: TokenEndpoint: ****
HTTP: PUT https://global.rel.tunnels.api.visualstudio.com/tunnels/kind-book-2pj3gq9?api-version=2023-09-27-preview
HTTP: Authorization: Bearer <token>
HTTP: If-None-Match: *
HTTP: User-Agent: Dev-Tunnels-Service-CLI/1.0.1886+37d3b95bd3
HTTP: User-Agent: (OS:Ubuntu 24.04.2 LTS)
HTTP: User-Agent: Dev-Tunnels-Service-CSharp-SDK/1.3.48+f9224e4bc2
HTTP: {
  "tunnelId": "kind-book-2pj3gq9",
  "options": {},
  "customExpiration": 2592000
}
HTTP: 201 Created (431 ms)
HTTP: Date: Thu, 18 Jun 2026 13:54:33 GMT
HTTP: Transfer-Encoding: chunked
HTTP: Connection: keep-alive
HTTP: Location: https://global.rel.tunnels.api.visualstudio.com/tunnels/kind-book-2pj3gq9/kind-book-2pj3gq9
HTTP: RateLimit-Limit: ApiQueryRatePerIPAddress:1000/s,ApiQueryRatePerIPAddress:40/s
HTTP: RateLimit-Remaining: ApiQueryRatePerIPAddress:999,ApiQueryRatePerIPAddress:39
HTTP: RateLimit-Reset: ApiQueryRatePerIPAddress:1s,ApiQueryRatePerIPAddress:1s
HTTP: X-Content-Type-Options: nosniff
HTTP: X-Report-Abuse: https://msrc.microsoft.com/report/abuse
HTTP: api-supported-versions: 1.0, 2023-05-23-preview, 2023-09-27-preview
HTTP: VsSaaS-Request-Id: 07316804-0b8f-4b92-a831-d4f8ca96450c
HTTP: Strict-Transport-Security: max-age=31536000; includeSubDomains
HTTP: X-Served-By: tunnels-prod-rel-euw-v3-cluster
HTTP: {
  "clusterId": "euw",
  "tunnelId": "kind-book-2pj3gq9",
  "name": "",
  "description": "",
  "labels": [],
  "accessTokens": {
    "host": "<tunnel=kind-book-2pj3gq9.euw, scopes=[host], issuer=https://tunnels.api.visualstudio.com/, expiration=2026-06-19T13:54:33Z (1.00:00:00 remaining)>"
  },
  "accessControl": {
    "entries": []
  },
  "options": {
    "isGloballyAvailable": true
  },
  "status": {
    "clientConnectionCount": {
      "current": 0,
      "limit": 20
    },
    "clientConnectionRate": {
      "current": 0
    },
    "uploadRate": {
      "periodSeconds": 1,
      "current": 0,
      "limit": 20971520
    },
    "downloadRate": {
      "periodSeconds": 1,
      "current": 0,
      "limit": 20971520
    },
    "apiReadRate": {
      "current": 0
    },
    "apiUpdateRate": {
      "current": 0
    }
  },
  "endpoints": [],
  "created": "2026-06-18T13:54:33.655228Z",
  "expiration": "2026-06-22T13:54:33.655228Z",
  "customExpiration": 2592000
}
Using token cache file: /home/test/.local/share/DevTunnels/devtunnels-tokens
MSAL-Cache: Initialized 'Storage'
MSAL-Cache: Reading Data
MSAL-Cache: Reading from file
MSAL-Cache: Cache file exists? 'True'
MSAL-Cache: Read '1004' bytes from the file
MSAL-Cache: Got '1004' bytes from file storage
Loaded 2 tunnel access token(s) from cache.
MSAL-Cache: Got '1497' bytes to write to storage
MSAL-Cache: Writing cache file
MSAL-Cache: Writing file with chmod 600
Tunnel ID             : kind-book-2pj3gq9.euw
Description           :
Labels                :
Access control        : {}
Host connections      : 0
Client connections    : 0
Current upload rate   : 0 MB/s (limit: 20 MB/s)
Current download rate : 0 MB/s (limit: 20 MB/s)
Tunnel Expiration     : 4 days

Set default tunnel to kind-book-2pj3gq9.euw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions