Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Azure-Samples/key-vault-java-network-acl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

services key-vault
platforms java
author tiffanyachen

Vnet/IP ACL sample for Azure Key Vault using the Azure Java SDK

This sample repo demonstrates how to create an Azure Key Vault with access limited to specific IP ranges and Azure Virtual Networks.

Prerequisites

Running the samples

  1. If not installed, install Java.

  2. Clone the repository.

git clone https://github.com/Azure-Samples/key-vault-java-authentication.git
  1. Create an Azure service principal, using Azure CLI, PowerShell or Azure Portal. Note that if you wish to authenticate with the certificate authenticator the certificate should be saved locally.

  2. Add the following values to the pom.xml in the configurations for the exec-maven-plugin.

<systemProperties>
        <systemProperty>
                <key>AZURE_TENANT_ID</key>
                <value>{AZURE_TENANT_ID}</value>
        </systemProperty>
        <systemProperty>
                <key>AZURE_CLIENT_ID</key>
                <value>{AZURE_CLIENT_ID}</value>
        </systemProperty>
        <systemProperty>
                <key>AZURE_CLIENT_SECRET</key>
                <value>{AZURE_CLIENT_SECRET}</value>
        </systemProperty>
        <systemProperty>
                <key>AZURE_OBJECT_ID</key>
                <value>{AZURE_OBJECT_ID}</value>
        </systemProperty>
<systemProperties>

AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET must be set for general Azure authentication.

  1. Run mvn clean compile exec:java for a full run-through.

More information

About

Vnet/IP ACL sample for Azure Key Vault using the Azure Java SDK

Resources

License

Code of conduct

Contributing

Stars

0 stars

Watchers

9 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages