New-AzVMSqlServerKeyVaultCredentialConfig
Creates a configuration object for SQL server key vault credential on a virtual machine.
Syntax
New-AzVMSqlServerKeyVaultCredentialConfig
[-ResourceGroupName] <String>
[-Enable]
[-CredentialName <String>]
[-AzureKeyVaultUrl <String>]
[-ServicePrincipalName <String>]
[-ServicePrincipalSecret <SecureString>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzVMSqlServerKeyVaultCredentialConfig cmdlet creates a configuration object for SQL server key vault credential on a virtual machine.
Examples
Example 1
New-AzVMSqlServerKeyVaultCredentialConfig -ResourceGroupName "ResourceGroup11" -Enable -AzureKeyVaultUrl https://myvault.vault.azure.net/ -CredentialName test1
ResourceGroupName : ResourceGroup11
Enable : True
CredentialName : test1
AzureKeyVaultUrl : https://myvault.vault.azure.net/
ServicePrincipalName :
ServicePrincipalSecret :
Credentials :
Parameters
-AzureKeyVaultUrl
Azure Key Vault service URL
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CredentialName
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Enable
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ServicePrincipalName
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ServicePrincipalSecret
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for