Skip to content

Commit

Permalink
feat: avm/res/storage/storage-account Added service endpoints to ou…
Browse files Browse the repository at this point in the history
…tput (Azure#2551)

## Description

<!--
>Thank you for your contribution !
> Please include a summary of the change and which issue is fixed.
> Please also include the context.
> List any dependencies that are required for this change.
-->
Adding service endpoints of the storage account to the outputs to use in
reference in other modules.

Closes Azure#2550

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->


[![avm.res.storage.storage-account](https://github.com/donheerschap/bicep-registry-modules/actions/workflows/avm.res.storage.storage-account.yml/badge.svg?branch=stgUriOutputs)](https://github.com/donheerschap/bicep-registry-modules/actions/workflows/avm.res.storage.storage-account.yml)


## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utilities (Non-module affecting
changes)
- [x] Azure Verified Module updates:
- [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [x] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [x] Update to documentation

## Checklist

- [x] I'm sure there are no other open Pull Requests for the same
update/change
- [x] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [x] My corresponding pipelines / checks run clean and green without
any errors or warnings

<!-- Please keep up to date with the contribution guide at
https://aka.ms/avm/contribute/bicep -->
  • Loading branch information
donheerschap authored Jul 1, 2024
1 parent fb28a80 commit c681a1d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions avm/res/storage/storage-account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3209,6 +3209,7 @@ Tags of the resource.
| `primaryBlobEndpoint` | string | The primary blob endpoint reference if blob services are deployed. |
| `resourceGroupName` | string | The resource group of the deployed storage account. |
| `resourceId` | string | The resource ID of the deployed storage account. |
| `serviceEndpoints` | object | All service endpoints of the deployed storage account, Note Standard_LRS and Standard_ZRS accounts only have a blob service endpoint. |
| `systemAssignedMIPrincipalId` | string | The principal ID of the system assigned identity. |

## Cross-referenced modules
Expand Down
3 changes: 3 additions & 0 deletions avm/res/storage/storage-account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@ output systemAssignedMIPrincipalId string = storageAccount.?identity.?principalI
@description('The location the resource was deployed into.')
output location string = storageAccount.location

@description('All service endpoints of the deployed storage account, Note Standard_LRS and Standard_ZRS accounts only have a blob service endpoint.')
output serviceEndpoints object = storageAccount.properties.primaryEndpoints

// =============== //
// Definitions //
// =============== //
Expand Down
9 changes: 8 additions & 1 deletion avm/res/storage/storage-account/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "9679329912314181282"
"templateHash": "5769970568658743015"
},
"name": "Storage Accounts",
"description": "This module deploys a Storage Account.",
Expand Down Expand Up @@ -4644,6 +4644,13 @@
"description": "The location the resource was deployed into."
},
"value": "[reference('storageAccount', '2022-09-01', 'full').location]"
},
"serviceEndpoints": {
"type": "object",
"metadata": {
"description": "All service endpoints of the deployed storage account, Note Standard_LRS and Standard_ZRS accounts only have a blob service endpoint."
},
"value": "[reference('storageAccount').primaryEndpoints]"
}
}
}
4 changes: 2 additions & 2 deletions avm/res/storage/storage-account/version.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://aka.ms/bicep-registry-module-version-file-schema#",
"version": "0.10",
"version": "0.11",
"pathFilters": [
"./main.json"
]
}
}

0 comments on commit c681a1d

Please sign in to comment.