-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into features/adx
- Loading branch information
Showing
10 changed files
with
678 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
//============================================================================== | ||
// Parameters | ||
//============================================================================== | ||
|
||
@description('Optional. Array of private endpoint connections. Pending ones will be approved.') | ||
param privateEndpointConnections array = [] | ||
|
||
@description('Required. Name of the KeyVault.') | ||
param keyVaultName string | ||
|
||
//============================================================================== | ||
// Resources | ||
//============================================================================== | ||
|
||
resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' existing = { | ||
name: keyVaultName | ||
} | ||
|
||
resource privateEndpointConnection 'Microsoft.KeyVault/vaults/privateEndpointConnections@2023-07-01' = [ for privateEndpointConnection in privateEndpointConnections : if (privateEndpointConnection.properties.privateLinkServiceConnectionState.status == 'Pending') { | ||
name: last(array(split(privateEndpointConnection.id, '/'))) | ||
parent: keyVault | ||
properties: { | ||
privateLinkServiceConnectionState: { | ||
status: 'Approved' | ||
description: 'Approved-by-pipeline' | ||
} | ||
} | ||
}] | ||
|
||
//============================================================================== | ||
// Outputs | ||
//============================================================================== | ||
|
||
output privateEndpointConnections array = keyVault.properties.privateEndpointConnections |
Oops, something went wrong.