Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
add
  • Loading branch information
bcafferky committed Oct 18, 2018
1 parent 7af9446 commit f51607b
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
Binary file added AzureDatabricksR/Azure Databricks R Language.pptx
Binary file not shown.
Binary file not shown.
Binary file added AzurePortal/AzurePortalGUI.pptx
Binary file not shown.
Binary file added PowerShellQuickTips/PowerShellQuickTips1.pptx
Binary file not shown.
48 changes: 48 additions & 0 deletions PowerShellQuickTips/PowerShellQuickTips1/ufn_demo_Blob.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
function New-udfAzureBlob {
#
# Warning: This code is for demostration only and should not be used
# for production. No warrantees are implied and this code
# is provided as is.
#
param (
[Parameter(Mandatory=$true)]
[string]$ResourceGroupName,
[Parameter(Mandatory=$true)]
[string]$StorageAccountName,
[Parameter(Mandatory=$true)]
[string]$Location,
[Parameter(Mandatory=$true)]
[string]$SubscriptionName,
[Parameter(Mandatory=$true)]
[string]$ContainerName,
[Parameter(Mandatory=$true)]
[ValidateSet("Standard_LRS","Standard_ZRS","Standard_GRS", "Standard_RAGRS", "Premium_LRS")]
[string]$SkuName
)

<# Sku Name Values:
Standard_LRS. Locally-redundant storage.
Standard_ZRS. Zone-redundant storage.
Standard_GRS. Geo-redundant storage.
Standard_RAGRS. Read access geo-redundant storage.
Premium_LRS. Premium locally-redundant storage.
#>

Write-Verbose "Creating storage acccount: $StorageAccountName."
# Create a new storage account.
New-AzureRMStorageAccount -ResourceGroupName $ResourceGroupName –StorageAccountName $StorageAccountName -Location $Location -SkuName $SkuName -Kind Storage

Start-Sleep -s 30

# Set a default storage account.
Write-Verbose "Setting the default storage account: $StorageAccountName."
Set-AzureRmCurrentStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageAccountName

# Create a new container.
Write-Verbose "Creating new container: $ContainerName."
New-AzureStorageContainer -Name $ContainerName -Permission Off

}


0 comments on commit f51607b

Please sign in to comment.