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
8 changes: 2 additions & 6 deletions sdk/provisioning/Azure.Provisioning.Storage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Release History

## 1.1.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes
## 1.0.1 (2025-05-15)

### Bugs Fixed

### Other Changes
- Fixed the `Name` of `QueueService` should always be `default`. (https://github.com/Azure/azure-sdk-for-net/issues/49898)

## 1.0.0 (2024-10-25)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Azure.Provisioning.Storage simplifies declarative resource provisioning in .NET for Azure Storage.</Description>
<Version>1.1.0-beta.1</Version>
<Version>1.0.1</Version>
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
<ApiCompatVersion>1.0.0</ApiCompatVersion>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions sdk/provisioning/Azure.Provisioning.Storage/src/QueueService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Provisioning.Expressions;

namespace Azure.Provisioning.Storage;

// Customize the generated FileService resource.
public partial class QueueService
{
/// <summary>
/// Get the default value for the Name property.
/// </summary>
private partial BicepValue<string> GetNameDefaultValue() =>
new StringLiteralExpression("default");

/// <summary>
/// Gets the Name.
/// </summary>
public BicepValue<string> Name
{
get { Initialize(); return _name!; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ protected override void Customize()
CustomizeProperty<StorageAccountManagementPolicyResource>("Name", p => { p.GenerateDefaultValue = true; p.HideAccessors = true; p.IsReadOnly = false; }); // must be `default`
AddNameRequirements<StorageQueueResource>(min: 3, max: 63, lower: true, digits: true, hyphen: true);
AddNameRequirements<TableResource>(min: 3, max: 63, lower: true, upper: true, digits: true);
CustomizeProperty<QueueServiceResource>("Name", p => { p.GenerateDefaultValue = true; p.HideAccessors = true; p.IsReadOnly = false; }); // must be `default`

// Roles
Roles.Add(new Role("StorageAccountBackupContributor", "e5e2a7ff-d759-4cd2-bb51-3152d37e2eb1", "Lets you perform backup and restore operations using Azure Backup on the storage account."));
Expand Down