New-AzureRmVMSqlServerKeyVaultCredentialConfig
Creates a configuration object for SQL server key vault credential on a virtual machine.
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are
advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and
updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing
any continued use at the user's discretion and risk. Please refer to our
migration resources for guidance on transitioning to the Az module.
Syntax
New-AzureRmVMSqlServerKeyVaultCredentialConfig
[-ResourceGroupName] <String>
[-Enable]
[-CredentialName <String>]
[-AzureKeyVaultUrl <String>]
[-ServicePrincipalName <String>]
[-ServicePrincipalSecret <SecureString>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Parameters
-AzureKeyVaultUrl
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
String
SwitchParameter
SecureString
Outputs
KeyVaultCredentialSettings