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
This library allows you to specify your infrastructure in a declarative style using dotnet. You can then use azd to deploy your infrastructure to Azure directly without needing to write or maintain bicep or arm templates.
23
+
This library allows you to specify your infrastructure in a declarative style using dotnet. You can then use `azd` to deploy your infrastructure to Azure directly without needing to write or maintain `bicep` or arm templates.
24
+
25
+
### `BicepValue` types
26
+
27
+
`BicepValue` types are the foundation of `Azure.Provisioning`, providing a flexible type system that can represent literal .NET values, Bicep expressions, or unset properties. These types enable strongly-typed infrastructure definition while maintaining the flexibility needed for dynamic resource configuration.
28
+
29
+
#### Core `BicepValue` Types
30
+
31
+
**`BicepValue<T>`** - Represents a strongly-typed value that can be:
32
+
- A literal .NET value of type `T`
33
+
- A Bicep expression that evaluates to type `T`
34
+
- An unset value (usually one should get this state from the property of a constructed resource/construct)
**`ProvisionableResource`** - Base class for Azure resources that provides resource-specific functionality. Users typically work with specific resource types like `StorageAccount`, `VirtualMachine`, `AppService`, etc. An instance of type `ProvisionableResource` corresponds to a resource statement in `bicep` language.
87
+
88
+
**`ProvisionableConstruct`** - Base class for infrastructure components that group related properties and resources. Most users will work with concrete implementations like `StorageAccountSku`, `VirtualNetworkIPConfiguration`, etc. An instance of type `ProvisionableConstruct` usually corresponds to an object definition statement in `bicep` language.
89
+
90
+
Here's how you use the provided Azure resource classes:
91
+
92
+
```csharp
93
+
// Create a storage account with BicepValue properties
This example demonstrates how to create basic Azure infrastructure using the AzureProvisioning framework, including a storage account with blob services and output values.
136
+
This example demonstrates how to create basic Azure infrastructure using the `Azure.Provisioning` framework, including a storage account with blob services and output values.
0 commit comments