Skip to content
Merged
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
1 change: 1 addition & 0 deletions cli/azd/docs/extensions/extension-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ azd extension source add -n azd -t url -l "https://aka.ms/azd/extensions/registr

A shared development registry can be added to your `azd` configuration.
This registry contains extensions that are experiments and also used for internal testing before shipping official extensions.
The registry is hosted in the [`azd` GitHub repo](https://github.com/Azure/azure-dev/blob/main/cli/azd/extensions/registry.dev.json).

To opt-in for the development registry run the following command:

Expand Down
4 changes: 4 additions & 0 deletions cli/azd/extensions/registry.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"schemaVersion": "1.0",
Comment thread
JeffreyCA marked this conversation as resolved.
"extensions": []
}
26 changes: 26 additions & 0 deletions cli/azd/pkg/extensions/registry_files_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package extensions

import (
"encoding/json"
"os"
"path/filepath"
"testing"

"github.com/stretchr/testify/require"
)

func TestDevRegistryFileIsValid(t *testing.T) {
registryPath := filepath.Join("..", "..", "extensions", "registry.dev.json")
data, err := os.ReadFile(registryPath)
require.NoError(t, err)

var registry Registry
require.NoError(t, json.Unmarshal(data, &registry))
require.Equal(t, CurrentRegistrySchemaVersion, registry.SchemaVersion)
Comment thread
JeffreyCA marked this conversation as resolved.

result := ValidateRegistry(&registry, false)
Comment thread
JeffreyCA marked this conversation as resolved.
require.True(t, result.Valid, "registry.dev.json failed validation: %+v", result)
}
2 changes: 1 addition & 1 deletion docs/architecture/extension-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ azd (host)
Extensions are discovered from registries — JSON manifests that list available extensions with their versions, capabilities, and download URLs.

- **Official registry:** `https://aka.ms/azd/extensions/registry`
- **Dev registry:** `https://aka.ms/azd/extensions/registry/dev` (unsigned builds)
- **Dev registry:** `https://aka.ms/azd/extensions/registry/dev` (unsigned builds, backed by `cli/azd/extensions/registry.dev.json`)
- **Local sources:** File-based manifests for development
Comment thread
JeffreyCA marked this conversation as resolved.

### Lifecycle
Expand Down
Loading