All Questions
40 questions
0
votes
1
answer
176
views
Start-AzStorageBlobCopy in powersell
Using powershell, I am trying to get the azure webapp log files and copy them to azure storage account container and then delete
$webAppName = "WA01"
$resourceGroupName = "RG01"
$...
0
votes
1
answer
750
views
How to read content of csv file stored in azure storage using powershell?
I want to fetch file names ( columns [TransferDate,DirectoryName,FileName,CreationDate] ) from a csv file stored in azure storage, but i dont want to store it locally. I am running the script in ...
0
votes
0
answers
111
views
where-object not displaying data
Question: Why the PowerShell code1 below correctly displays data but code2 (with where-object) does not display any data (no errors but no output). Both have exact same subscripionID and storage ...
0
votes
1
answer
106
views
Setting desktop backgrounds via Azure Storage Containers using PowerShell not working
I'm trying to set desktop backgrounds for our users from Azure Storage using a PS script I'm hoping to deploy.
This script
It just isn't working!
For whatever reason, the script just stops calling at ...
0
votes
1
answer
3k
views
Azure Powershell: How Do I search for files in a BLOB storage quickly?
We store log files in an Azure storage account, sorted in directories, by date and customer, like this:
YYYY/MM/DD/customerNo/.../.../somestring.customerNo.applicatoinID.log
I need to parse some of ...
0
votes
1
answer
660
views
Showing all the blobs from multiple storage containers in Azure using powershell
I am trying to list all the blobs from various containers that i have in an Azure storage account using powershell
So i run the below commands :
$storageAccountName = "contoso"
$...
0
votes
1
answer
79
views
Azure Powershell script to remove/filter line which has extra delimiter from blob
I have a file in blob storage which contains 5 delimiter(columns). Few line contains more than 5 delimiters. I need to remove the lines which contains more than 5 delimiters from the Azure Blob and ...
0
votes
1
answer
4k
views
List Files in a folder in Azure Blob Container via Power Shell with SAS Token
My objective is to check if files exist in a folder in blob container. Access to Storage from portal is closed, so here is what I have:
VM with PowerShell and Azure Storage Explorer
Path to files: ...
2
votes
0
answers
2k
views
Generate SAS token to manage Azure Blob Container using PowerShell REST API
I'm downloading files from Azure Blob Storage with PowerShell REST API. The code works perfectly, the only think is that I have to hardcode the SAS. Instead of hardcoding the SAS I want to generate ...
5
votes
1
answer
6k
views
Using Only a SAS Token To Upload in PowerShell
I have a SAS Token in the form:
https://name.blob.core.windows.net/container?sv=2015-04-05&sr=b&sig=abc123&se=2017-03-07T12%3A58%3A52Z&sp=rw
I am attempting to use an Az Provided ...
2
votes
1
answer
866
views
Azure Storage Account Soft Delete with PowerShell
Hi,
Can anyone explain the difference between Enable-AzStorageDeleteRetentionPolicy and Enable-AzStorageBlobDeleteRetentionPolicy?
I am working on a PowerShell script to automate creation of storage ...
0
votes
1
answer
323
views
Access key Value pairs of a blob json in powershell
I have a JSON , like so(posting just the initial snippet) :
[
{
"ICloudBlob": {
"StreamWriteSizeInBytes": 4194304,
"ServiceClient": {
&...
1
vote
2
answers
5k
views
Read JSON file from Azure Blob Storage using PowerShell script and write back to another file in blob storage
I have following JSON file (product.json) stored in Azure Blob storage. Is it possible to write PowerShell script to read this file from blob storage make some changes and write back to another file.
...
1
vote
1
answer
254
views
Loop through REST endpoint to read document and write to Azure Blob storage
Using below PowerShell code to read the endpoint and write the result to blob storage. However, if the endpoint has more than one documents. How can we loop through each document and write the result ...
0
votes
1
answer
527
views
Filter JSON ducument using PowerShell
I have following code where I am reading JSON data from end point and storing in azure blob storage. The result data contains few extra line items which I don't want to store in Blob storage.
Current ...