How about Add-AzKeyVaultNetworkRule or Update-AzKeyVaultNetworkRuleSet
Ad Existing virtual network and subnet to Keyvault using powershell
Hello ,
I am able to successfull create a key vault using below azure cli command
az keyvault create --name $kvname --resource-group $rgname --location $location --enable-soft-delete true
I have a business case to add existing virtual network and subnet using private endpoint to out new key vault using CLI command . I didnt find any command that does this , could anyone please let me know if we can achieve this using powershell or azure cli?
3 answers
Sort by: Most helpful
-
-
Andreas Baumgarten 97,731 Reputation points MVP
2021-09-17T20:20:51.357+00:00 Hi @SethuRam ,
if you are looking for the AZ CLI command please take a look here:
https://learn.microsoft.com/en-us/cli/azure/keyvault/network-rule?view=azure-cli-latest----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten -
Limitless Technology 39,396 Reputation points
2021-09-20T11:51:26.857+00:00 Hello Surya,
In order to work on the AZ CLI command, do have a look at the below link, which will be helpful to you
https://learn.microsoft.com/en-us/cli/azure/keyvault/network-rule?view=azure-cli-latest
Do follow the below link for a better understanding,
Hope this answers all your queries, if not please do repost back.
If an Answer is helpful, please click "Accept Answer" and upvote it : )