Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/azure-cli
FROM mcr.microsoft.com/azure-cli:2.64.0

ARG TARGETARCH

Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,22 @@ Console.WriteLine("Created Queue: " + queue.Name);
> [!NOTE]
> As the example demonstrates, the subscription id is provided as the bearer token for authentication. The subscription will always be created automatically if one does not yet exist.

## Use a custom domain

You can use your own domain and certificates. Generate a certificate for your domain and expose the private and public keys in a json file. The json must contains the keys in PEM format like the following:

```json
{
"cert": "-----BEGIN CERTIFICATE-----\n[REDACTED....]\n-----END CERTIFICATE-----",
"key": "-----BEGIN PRIVATE KEY-----\n[REDACTED....]\n-----END PRIVATE KEY-----"
}
```

Then, start the container with two additional environment variables

- `LOCALSANDBOX_HOSTNAME`: fully qualified domain name (FQDN) of your custom domain. Default value is `localhost.localsandbox.sh`.
- `LOCALSANDBOX_CERT_RETRIEVAL_URL`: URL where the JSON file containing the certificate and key can be retrieved (could be hosted anywhere). Default value is `https://cert.localsandbox.sh/`.

## Features and Roadmap

- [ ] Service Bus
Expand Down
2 changes: 1 addition & 1 deletion packages/azure-local-cli/azure_local_cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __setattr__(self, key, value):
import os

port = int(os.environ.get("LOCALSANDBOX_PORT") or 7329)
hostname = f"localhost.localsandbox.sh"
hostname = os.environ.get("LOCALSANDBOX_HOSTNAME") or "localhost.localsandbox.sh"
endpoint = f"https://{hostname}:{port}/azure"

import azure.cli.core as azure_cli_core
Expand Down