-
Notifications
You must be signed in to change notification settings - Fork 0
Get D365AzureStorageUrl
Get a blob Url from Azure Storage account
Get-D365AzureStorageUrl [[-AccountId] <String>] [[-SAS] <String>] [[-Container] <String>] [-OutputAsHashtable]
[<CommonParameters>]
Get a valid blob container url from an Azure Storage Account
Get-D365AzureStorageUrl -AccountId "miscfiles" -SAS "sv2018-03-28&siunlisted&src&sigAUOpdsfpoWE976ASDhfjkasdf(5678sdfhk" -Container "backupfiles"
This will generate a valid Url for the blob container in the Azure Storage Account. It will use the AccountId "miscfiles" as the name of the storage account. It will use the SAS key "sv2018-03-28&siunlisted&src&sigAUOpdsfpoWE976ASDhfjkasdf(5678sdfhk" to add the SAS token/key to the Url. It will use the Container "backupfiles" as the container name in the Url.
Get-D365AzureStorageUrl
This will generate a valid Url for the blob container in the Azure Storage Account. It will use the default values that are configured using the Set-D365ActiveAzureStorageConfig cmdlet and view using the Get-D365ActiveAzureStorageConfig cmdlet.
Get-D365AzureStorageUrl -OutputAsHashtable
This will generate a valid Url for the blob container in the Azure Storage Account. It will use the default values that are configured using the Set-D365ActiveAzureStorageConfig cmdlet and view using the Get-D365ActiveAzureStorageConfig cmdlet.
The output object will be a Hashtable, which you can use as a parameter for other cmdlets.
$DestinationParms = Get-D365AzureStorageUrl -OutputAsHashtable
PS C:\> $BlobFileDetails = Get-D365LcsDatabaseBackups -Latest | Invoke-D365AzCopyTransfer @DestinationParms PS C:\> $BlobFileDetails | Invoke-D365AzCopyTransfer -DestinationUri "C:\Temp" -DeleteOnTransferComplete
This will transfer the lastest backup file from LCS Asset Library to your local "C:\Temp". It will get a destination Url, for it to transfer the backup file between the LCS storage account and your own. The newly transfered file, that lives in your own storage account, will then be downloaded to your local "c:\Temp".
After the file has been downloaded to your local "C:\Temp", it will be deleted from your own storage account.
Storage Account Name / Storage Account Id you want to work against
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $Script:AzureStorageAccountId
Accept pipeline input: False
Accept wildcard characters: False
The SAS key that you have created for the storage account or blob container
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: $Script:AzureStorageSAS
Accept pipeline input: False
Accept wildcard characters: False
Name of the blob container inside the storage account you want to work against
Type: String
Parameter Sets: (All)
Aliases: Blobname, Blob
Required: False
Position: 3
Default value: $Script:AzureStorageContainer
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to return a hastable object
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Azure, Azure Storage, Token, Blob, File, Container, LCS, Asset, Bacpac, Backup
Author: Mötz Jensen (@Splaxi)
- Install as a non-Administrator
- Install as a Administrator
- Import d365fo.tools module
- List available commands from d365fo.tools module
- Get help content for a command
- Start, Stop and List services
- Import users into the D365FO environment
- Import external users into the D365FO environment
- Enable users in the D365FO environment
- Update users in the D365FO environment
- Provision D365FO environment to new Azure AD tenant
- Import a bacpac file into a Tier1 environment
- List modules / models
- Compile module
- Install AzCopy
- Install SqlPackage
- Install Nuget
- Speed up LCS download via AzCopy
- Download latest bacpac from LCS via AzCopy
- Register NuGet source
- Configure Azure Logic App
- Fix AzureStorageConfig
- Run a runnable class
- Update users in environment
- Work with Azure Storage Account
- Work with packages, resource label files, language and lables
- Working with the different D365 services