You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, deploy the [/lib/](/lib/) files to an [Azure Container Registry](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-intro) for improved reusability in your project or organization. All types, function and variables can be used.
42
+
43
+
To deploy, make sure to:
44
+
45
+
-[compile](#compile) Bicep#;
46
+
- provision an Azure Container Registry into your tenant;
47
+
- add Bicep to your PATH by [installing manually](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/install#install-manually).
48
+
49
+
Then run with:
50
+
51
+
- param `acrLoginServer`, the login server of an Azure Container Registry, for instance `acrbicepsharp.azurecr.io`;
52
+
- param `versionPostfix`, sets the version of the files to publish, if the version already exists, it will overwrite.
After deployment, you can use any of the public lib files in your own project by referring to the ACR in a Bicep file, for instance like this:
60
+
```bash
61
+
import * as sharpNetwork from 'br:acrbicepsharp.azurecr.io/bicepsharp/network:v1'
62
+
```
63
+
39
64
## Samples ##
40
65
41
-
Try out [the samples](/samples/) by running the following commands:
66
+
The samples use local files and not from a registry, but give a good idea how to use Bicep#. Try out [the samples](/samples/) by running the following commands:
0 commit comments