Skip to content

Commit fc77a73

Browse files
authored
Bump bicep bits (#2930)
1 parent 857447a commit fc77a73

39 files changed

+534
-412
lines changed

docs/azureai/azureai-openai-integration.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: .NET Aspire Azure OpenAI integration (Preview)
33
description: Learn how to use the .NET Aspire Azure OpenAI integration.
4-
ms.date: 03/06/2025
4+
ms.date: 04/03/2025
55
---
66

77
# .NET Aspire Azure OpenAI integration (Preview)
@@ -83,25 +83,9 @@ If you're new to [Bicep](/azure/azure-resource-manager/bicep/overview), it's a d
8383

8484
:::code language="bicep" source="../snippets/azure/AppHost/openai.module.bicep":::
8585

86-
The preceding Bicep is a module that provisions an Azure Cognitive Services resource with the following defaults:
87-
88-
- `location`: The location of the resource group.
89-
- `principalType`: The principal type of the Cognitive Services resource.
90-
- `principalId`: The principal ID of the Cognitive Services resource.
91-
- `openai`: The Cognitive Services account resource.
92-
- `kind`: The kind of the resource, set to `OpenAI`.
93-
- `properties`: The properties of the resource.
94-
- `customSubDomainName`: The custom subdomain name for the resource, based on the unique string of the resource group ID.
95-
- `publicNetworkAccess`: Set to `Enabled`.
96-
- `disableLocalAuth`: Set to `true`.
97-
- `sku`: The SKU of the resource, set to `S0`.
98-
- `openai_CognitiveServicesOpenAIContributor`: The Cognitive Services resource owner, based on the build-in `Azure Cognitive Services OpenAI Contributor` role. For more information, see [Azure Cognitive Services OpenAI Contributor](/azure/role-based-access-control/built-in-roles/ai-machine-learning#cognitive-services-openai-contributor).
99-
- `preview`: The deployment resource, based on the `preview` name.
100-
- `properties`: The properties of the deployment resource.
101-
- `format`: The format of the deployment resource, set to `OpenAI`.
102-
- `modelName`: The model name of the deployment resource, set to `gpt-4.5-preview`.
103-
- `modelVersion`: The model version of the deployment resource, set to `2025-02-27`.
104-
- `connectionString`: The connection string, containing the endpoint of the Cognitive Services resource.
86+
The preceding Bicep is a module that provisions an Azure Cognitive Services resource. Additionally, role assignments are created for the Azure resource in a separate module:
87+
88+
:::code language="bicep" source="../snippets/azure/AppHost/openai-roles.module.bicep":::
10589

10690
The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
10791

docs/azureai/azureai-search-document-integration.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: .NET Aspire Azure AI Search integration
33
description: Learn how to integrate Azure AI Search with .NET Aspire.
4-
ms.date: 03/07/2025
4+
ms.date: 04/03/2025
55
---
66

77
# .NET Aspire Azure AI Search integration
@@ -57,21 +57,9 @@ If you're new to [Bicep](/azure/azure-resource-manager/bicep/overview), it's a d
5757

5858
:::code language="bicep" source="../snippets/azure/AppHost/search.module.bicep":::
5959

60-
The preceding Bicep is a module that provisions an Azure AI Search service resource with the following defaults:
61-
62-
- `location`: The location parameter of the resource group, defaults to `resourceGroup().location`.
63-
- `principalType`: The principal type parameter of the Azure AI Search resource.
64-
- `principalId`: The principal ID parameter of the Azure AI Search resource.
65-
- `search`: The resource representing the Azure AI Search service.
66-
- `properties`: The properties of the Azure AI Search service:
67-
- `hostingMode`: Is set to `default`.
68-
- `disableLocalAuth`: Is set to `true`.
69-
- `partitionCount`: Is set to `1`.
70-
- `replicaCount`: Is set to `1`.
71-
- `sku`: Defaults to `basic`.
72-
- `search_SearchIndexDataContributor`: The role assignment for the Azure AI Search index data contributor role. For more information, see [Search Index Data Contributor](/azure/role-based-access-control/built-in-roles/ai-machine-learning#search-index-data-contributor).
73-
- `search_SearchServiceContributor`: The role assignment for the Azure AI Search service contributor role. For more information, see [Search Service Contributor](/azure/role-based-access-control/built-in-roles/ai-machine-learning#search-service-contributor).
74-
- `connectionString`: The connection string for the Azure AI Search service, which is used to connect to the service. The connection string is generated using the `Endpoint` property of the Azure AI Search service.
60+
The preceding Bicep is a module that provisions an Azure AI Search service resource. Additionally, role assignments are created for the Azure resource in a separate module:
61+
62+
:::code language="bicep" source="../snippets/azure/AppHost/search-roles.module.bicep":::
7563

7664
The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
7765

docs/caching/includes/azure-redis-app-host.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,9 @@ If you're new to [Bicep](/azure/azure-resource-manager/bicep/overview), it's a d
5050

5151
:::code language="bicep" source="../../snippets/azure/AppHost/redis.module.bicep":::
5252

53-
The preceding Bicep is a module that provisions an Azure Cache for Redis with the following defaults:
54-
55-
- `location`: The location of the Azure Cache for Redis resource. The default is the location of the resource group.
56-
- `principalId`: The principal ID of the Azure Cache for Redis resource.
57-
- `principalName`: The principal name of the Azure Cache for Redis resource.
58-
- `sku`: The SKU of the Azure Cache for Redis resource. The default is `Basic` with a capacity of `1`.
59-
- `enableNonSslPort`: The non-SSL port of the Azure Cache for Redis resource. The default is `false`.
60-
- `disableAccessKeyAuthentication`: The access key authentication of the Azure Cache for Redis resource. The default is `true`.
61-
- `minimumTlsVersion`: The minimum TLS version of the Azure Cache for Redis resource. The default is `1.2`.
62-
- `redisConfiguration`: The Redis configuration of the Azure Cache for Redis resource. The default is `aad-enabled` set to `true`.
63-
- `tags`: The tags of the Azure Cache for Redis resource. The default is `aspire-resource-name` set to the name of the Aspire resource, in this case `redis`.
64-
- `redis_contributor`: The contributor of the Azure Cache for Redis resource, with an access policy name of `Data Contributor`.
65-
- `connectionString`: The connection string of the Azure Cache for Redis resource.
53+
The preceding Bicep is a module that provisions an Azure Cache for Redis resource. Additionally, role assignments are created for the Azure resource in a separate module:
54+
55+
:::code language="bicep" source="../../snippets/azure/AppHost/redis-roles.module.bicep":::
6656

6757
In addition to the Azure Cache for Redis, it also provisions an access policy assignment to the application access to the cache. The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
6858

docs/database/includes/cosmos-app-host.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ If you're new to [Bicep](/azure/azure-resource-manager/bicep/overview), it's a d
4949

5050
:::code language="bicep" source="../../snippets/azure/AppHost/cosmos.module.bicep":::
5151

52-
The preceding Bicep is a module that provisions an Azure Cosmos DB account with the following defaults:
52+
The preceding Bicep is a module that provisions an Azure Cosmos DB account resource. Additionally, role assignments are created for the Azure resource in a separate module:
5353

54-
- `kind`: The kind of Cosmos DB account. The default is `GlobalDocumentDB`.
55-
- `consistencyPolicy`: The consistency policy of the Cosmos DB account. The default is `Session`.
56-
- `locations`: The locations for the Cosmos DB account. The default is the resource group's location.
54+
:::code language="bicep" source="../../snippets/azure/AppHost/cosmos-roles.module.bicep":::
5755

58-
In addition to the Cosmos DB account, it also adds the current application to the `Data Contributor` role for the Cosmos DB account. The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
56+
The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
5957

6058
#### Customize provisioning infrastructure
6159

docs/database/includes/postgresql-flexible-server.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,9 @@ If you're new to [Bicep](/azure/azure-resource-manager/bicep/overview), it's a d
6262

6363
:::code language="bicep" source="../../snippets/azure/AppHost/postgres-flexible.module.bicep":::
6464

65-
The preceding Bicep is a module that provisions an Azure PostgreSQL flexible server with the following defaults:
66-
67-
- `authConfig`: The authentication configuration of the PostgreSQL server. The default is `ActiveDirectoryAuth` enabled and `PasswordAuth` disabled.
68-
- `availabilityZone`: The availability zone of the PostgreSQL server. The default is `1`.
69-
- `backup`: The backup configuration of the PostgreSQL server. The default is `BackupRetentionDays` set to `7` and `GeoRedundantBackup` set to `Disabled`.
70-
- `highAvailability`: The high availability configuration of the PostgreSQL server. The default is `Disabled`.
71-
- `storage`: The storage configuration of the PostgreSQL server. The default is `StorageSizeGB` set to `32`.
72-
- `version`: The version of the PostgreSQL server. The default is `16`.
73-
- `sku`: The SKU of the PostgreSQL server. The default is `Standard_B1ms`.
74-
- `tags`: The tags of the PostgreSQL server. The default is `aspire-resource-name` set to the name of the Aspire resource, in this case `postgres-flexible`.
65+
The preceding Bicep is a module that provisions an Azure PostgreSQL flexible server resource. Additionally, role assignments are created for the Azure resource in a separate module:
66+
67+
:::code language="bicep" source="../../snippets/azure/AppHost/postgres-flexible-roles.module.bicep":::
7568

7669
In addition to the PostgreSQL flexible server, it also provisions an Azure Firewall rule to allow all Azure IP addresses. Finally, an administrator is created for the PostgreSQL server, and the connection string is outputted as an output variable. The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
7770

docs/messaging/azure-event-hubs-integration.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: .NET Aspire Azure Event Hubs integration
33
description: This article describes the .NET Aspire Azure Event Hubs integration features and capabilities.
4-
ms.date: 03/10/2025
4+
ms.date: 04/03/2025
55
---
66

77
# .NET Aspire Azure Event Hubs integration
@@ -65,16 +65,9 @@ If you're new to [Bicep](/azure/azure-resource-manager/bicep/overview), it's a d
6565

6666
:::code language="bicep" source="../snippets/azure/AppHost/event-hubs.module.bicep":::
6767

68-
The preceding Bicep is a module that provisions an Azure Event Hubs resource with the following defaults:
68+
The preceding Bicep is a module that provisions an Azure Event Hubs resource. Additionally, role assignments are created for the Azure resource in a separate module:
6969

70-
- `location`: The location of the resource group.
71-
- `sku`: The SKU of the Event Hubs resource, defaults to `Standard`.
72-
- `principalId`: The principal ID of the Event Hubs resource.
73-
- `principalType`: The principal type of the Event Hubs resource.
74-
- `event_hubs`: The Event Hubs namespace resource.
75-
- `event_hubs_AzureEventHubsDataOwner`: The Event Hubs resource owner, based on the build-in `Azure Event Hubs Data Owner` role. For more information, see [Azure Event Hubs Data Owner](/azure/role-based-access-control/built-in-roles/analytics#azure-event-hubs-data-owner).
76-
- `messages`: The Event Hub resource.
77-
- `eventHubsEndpoint`: The endpoint of the Event Hubs resource.
70+
:::code language="bicep" source="../snippets/azure/AppHost/event-hubs-roles.module.bicep":::
7871

7972
The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
8073

docs/messaging/azure-service-bus-integration.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ If you're new to Bicep, it's a domain-specific language for defining Azure resou
5959

6060
:::code language="bicep" source="../snippets/azure/AppHost/service-bus.module.bicep":::
6161

62-
The preceding Bicep is a module that provisions an Azure Service Bus namespace with the following defaults:
62+
The preceding Bicep is a module that provisions an Azure Service Bus namespace resource. Additionally, role assignments are created for the Azure resource in a separate module:
6363

64-
- `sku`: The SKU of the Service Bus namespace. The default is Standard.
65-
- `location`: The location for the Service Bus namespace. The default is the resource group's location.
64+
:::code language="bicep" source="../snippets/azure/AppHost/service-bus-roles.module.bicep":::
6665

6766
In addition to the Service Bus namespace, it also provisions an Azure role-based access control (Azure RBAC) built-in role of Azure Service Bus Data Owner. The role is assigned to the Service Bus namespace's resource group. For more information, see [Azure Service Bus Data Owner](/azure/role-based-access-control/built-in-roles/integration#azure-service-bus-data-owner).
6867

docs/messaging/azure-web-pubsub-integration.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: .NET Aspire Azure Web PubSub integration
33
description: This article describes the .NET Aspire Azure Web PubSub integration features and capabilities.
44
ms.topic: how-to
5-
ms.date: 03/17/2025
5+
ms.date: 04/03/2025
66
---
77

88
# .NET Aspire Azure Web PubSub integration
@@ -101,17 +101,9 @@ When you add an Azure Web PubSub resource, the following Bicep is generated:
101101

102102
:::code language="bicep" source="../snippets/azure/AppHost/web-pubsub.module.bicep":::
103103

104-
The preceding Bicep is a module that provisions an Azure Web PubSub resource with the following defaults:
105-
106-
- `location`: The location of the resource group.
107-
- `sku`: The SKU of the Web PubSub resource, defaults to `Free_F1`.
108-
- `principalId`: The principal ID of the Web PubSub resource.
109-
- `principalType`: The principal type of the Web PubSub resource.
110-
- `messages_url_0`: The URL of the event handler for the `messages` hub.
111-
- `messages`: The name of the hub resource.
112-
- `web_pubsub`: The name of the Web PubSub resource.
113-
- `web_pubsub_WebPubSubServiceOwner`: The role assignment for the Web PubSub resource owner. For more information, see [Azure Web PubSub Service Owner](/azure/role-based-access-control/built-in-roles/web-and-mobile#web-pubsub-service-owner).
114-
- `endpoint`: The endpoint of the Web PubSub resource.
104+
The preceding Bicep is a module that provisions an Azure Web PubSub resource. Additionally, role assignments are created for the Azure resource in a separate module:
105+
106+
:::code language="bicep" source="../snippets/azure/AppHost/web-pubsub-roles.module.bicep":::
115107

116108
The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
117109

docs/security/azure-security-key-vault-integration.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,9 @@ If you're new to [Bicep](/azure/azure-resource-manager/bicep/overview), it's a d
6161

6262
:::code language="bicep" source="../snippets/azure/AppHost/key-vault.module.bicep":::
6363

64-
The preceding Bicep is a module that provisions an Azure Key Vault resource with the following defaults:
65-
66-
- `location`: The location of the resource group.
67-
- `principalId`: The principal ID of the user or service principal.
68-
- `principalType`: The principal type of the user or service principal.
69-
- `key_vault`: The Azure Key Vault resource:
70-
- `name`: A unique name for the Azure Key Vault.
71-
- `properties`: The Azure Key Vault properties:
72-
- `tenantId`: The tenant ID of the Azure Key Vault.
73-
- `sku`: The Azure Key Vault SKU:
74-
- `family`: The SKU family.
75-
- `name`: The SKU name.
76-
- `enableRbacAuthorization`: A boolean value that indicates whether the Azure Key Vault has role-based access control (RBAC) authorization enabled.
77-
- `tags`: The Azure Key Vault tags.
78-
- `key_vault_KeyVaultAdministrator`: The Azure Key Vault administrator role assignment:
79-
- `name`: A unique name for the role assignment.
80-
- `properties`: The role assignment properties:
81-
- `principalId`: The principal ID of the user or service principal.
82-
- `roleDefinitionId`: The role definition ID of the Azure Key Vault administrator role.
83-
- `principalType`: The principal type of the user or service principal.
84-
- `scope`: The scope of the role assignment.
85-
- `output`: The Azure Key Vault URI.
64+
The preceding Bicep is a module that provisions an Azure Key Vault resource. Additionally, role assignments are created for the Azure resource in a separate module:
65+
66+
:::code language="bicep" source="../snippets/azure/AppHost/key-vault-roles.module.bicep":::
8667

8768
The generated Bicep is a starting point and is influenced by changes to the provisioning infrastructure in C#. Customizations to the Bicep file directly will be overwritten, so make changes through the C# provisioning APIs to ensure they are reflected in the generated files.
8869

0 commit comments

Comments
 (0)