< Back
Get-AadAuthFile
Post
NAME Get-AadAuthFile
SYNOPSIS
Gets the contents of the keyvault and maps it to an Azure auth settings file.
SYNTAX
Get-AadAuthFile [-KeyvaultName] <String> [-FileLocation <String>] [-FileName <String>] [<CommonParameters>]
DESCRIPTION
Gets the contents of the keyvault and maps it to an Azure auth settings file.
Overrides the current file if it already exists, which is the desired behaviour, since what's on keyvault is the
final set of settings.
You need to be loged in azure with 'Login-AzAccount' and you need to have LIST and READ rights on secrets on the
target key vault.
PARAMETERS
-KeyvaultName <String>
The name of the source key vault.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-FileLocation <String>
The file location (folder) where we are saving to.
Defaults to %LOCALAPPDATA%\\Eshopworld
Required? false
Position? named
Default value "$($env:LOCALAPPDATA)\\Eshopworld"
Accept pipeline input? false
Accept wildcard characters? false
-FileName <String>
The name of the file.
Defaults to developer.azureauth
Required? false
Position? named
Default value developer.azureauth
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-AadAuthFile -KeyvaultName 'my-kv'
Maps the contents of the 'my-kv' keyvault to the file '%LOCALAPPDATA%\\Eshopworld\\developer.azureauth'.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-AadAuthFile -KeyvaultName 'my-kv' -FileLocation 'C:\\MyFolder' -FileName 'myfile.azureauth'
Maps the contents of the 'my-kv' keyvault to the file 'C:\\MyFolder\\myfile.azureauth'.
RELATED LINKS
SYNOPSIS
Gets the contents of the keyvault and maps it to an Azure auth settings file.
SYNTAX
Get-AadAuthFile [-KeyvaultName] <String> [-FileLocation <String>] [-FileName <String>] [<CommonParameters>]
DESCRIPTION
Gets the contents of the keyvault and maps it to an Azure auth settings file.
Overrides the current file if it already exists, which is the desired behaviour, since what's on keyvault is the
final set of settings.
You need to be loged in azure with 'Login-AzAccount' and you need to have LIST and READ rights on secrets on the
target key vault.
PARAMETERS
-KeyvaultName <String>
The name of the source key vault.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-FileLocation <String>
The file location (folder) where we are saving to.
Defaults to %LOCALAPPDATA%\\Eshopworld
Required? false
Position? named
Default value "$($env:LOCALAPPDATA)\\Eshopworld"
Accept pipeline input? false
Accept wildcard characters? false
-FileName <String>
The name of the file.
Defaults to developer.azureauth
Required? false
Position? named
Default value developer.azureauth
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-AadAuthFile -KeyvaultName 'my-kv'
Maps the contents of the 'my-kv' keyvault to the file '%LOCALAPPDATA%\\Eshopworld\\developer.azureauth'.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-AadAuthFile -KeyvaultName 'my-kv' -FileLocation 'C:\\MyFolder' -FileName 'myfile.azureauth'
Maps the contents of the 'my-kv' keyvault to the file 'C:\\MyFolder\\myfile.azureauth'.
RELATED LINKS