Skip to content

Commit 397984e

Browse files
committed
Storage: start custom
1 parent 8cea68e commit 397984e

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
function Get-AzStorageAccount_GetByName {
2+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Api20190401.IStorageAccount')]
3+
[CmdletBinding(PositionalBinding=$false)]
4+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Profile('latest-2019-04-30')]
5+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Description('Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.')]
6+
param(
7+
[Parameter(Mandatory, HelpMessage='The ID of the target subscription.')]
8+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
9+
[System.String[]]
10+
# The ID of the target subscription.
11+
${SubscriptionId},
12+
13+
[Parameter(Mandatory, HelpMessage='The name of the resource group within the user''s subscription. The name is case insensitive.')]
14+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
15+
[System.String]
16+
# The name of the resource group within the user's subscription. The name is case insensitive.
17+
${ResourceGroupName},
18+
19+
[Parameter(Mandatory, HelpMessage='The name of the storage account.')]
20+
[System.String]
21+
${Name},
22+
23+
[Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')]
24+
[Alias('AzureRMContext', 'AzureCredential')]
25+
[ValidateNotNull()]
26+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')]
27+
[System.Management.Automation.PSObject]
28+
# The credentials, account, tenant, and subscription used for communication with Azure.
29+
${DefaultProfile},
30+
31+
[Parameter(DontShow, HelpMessage='Wait for .NET debugger to attach')]
32+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
33+
[System.Management.Automation.SwitchParameter]
34+
# Wait for .NET debugger to attach
35+
${Break},
36+
37+
[Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')]
38+
[ValidateNotNull()]
39+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
40+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
41+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
42+
${HttpPipelineAppend},
43+
44+
[Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')]
45+
[ValidateNotNull()]
46+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
47+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
48+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
49+
${HttpPipelinePrepend},
50+
51+
[Parameter(DontShow, HelpMessage='The URI for the proxy server to use')]
52+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
53+
[System.Uri]
54+
# The URI for the proxy server to use
55+
${Proxy},
56+
57+
[Parameter(DontShow, HelpMessage='Credentials for a proxy server to use for the remote call')]
58+
[ValidateNotNull()]
59+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
60+
[System.Management.Automation.PSCredential]
61+
# Credentials for a proxy server to use for the remote call
62+
${ProxyCredential},
63+
64+
[Parameter(DontShow, HelpMessage='Use the default credentials for the proxy')]
65+
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
66+
[System.Management.Automation.SwitchParameter]
67+
# Use the default credentials for the proxy
68+
${ProxyUseDefaultCredentials}
69+
)
70+
71+
process {
72+
$PSBoundParameters.Add("AccountName", $Name) | Out-Null
73+
$PSBoundParameters.Remove("Name") | Out-Null
74+
Az.Storage.internal\Get-AzStorageAccountProperty @PSBoundParameters
75+
}
76+
}
77+

0 commit comments

Comments
 (0)