Skip to content

Commit bfbb8b9

Browse files
committed
Merge pull request #937 from chidmdxx/RenameGetProvider
Rename AzureRMProvider to AzureRMResourceProvider
2 parents a9fb846 + 4fb918e commit bfbb8b9

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

src/ResourceManager/Insights/Commands.Insights/Microsoft.Azure.Commands.Insights.dll-Help.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3575,7 +3575,7 @@ The value must be earlier than StartTime, but not more than 15 days.</maml:para>
35753575
<command:details>
35763576
<command:name>Get-AzureRMResourceProviderLog</command:name>
35773577
<maml:description>
3578-
<maml:para>Gets the operations associated with a Resource Provider (RP) for Azure Resource Manager (ARM). You can use the Get-AzureRMProvider command to list out the ARM Resource Providers that are available. By default, this command retrieves Resource Provider log entries for the last hour, however you can specify custom start and end times to get log entries from a specific time period.</maml:para>
3578+
<maml:para>Gets the operations associated with a Resource Provider (RP) for Azure Resource Manager (ARM). You can use the Get-AzureRMResourceProvider command to list out the ARM Resource Providers that are available. By default, this command retrieves Resource Provider log entries for the last hour, however you can specify custom start and end times to get log entries from a specific time period.</maml:para>
35793579
</maml:description>
35803580
<maml:copyright>
35813581
<maml:para />
@@ -3593,7 +3593,7 @@ The value must be earlier than StartTime, but not more than 15 days.</maml:para>
35933593
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="0">
35943594
<maml:name>ResourceProvider</maml:name>
35953595
<maml:description>
3596-
<maml:para>Specifies a filter by ResourceProvider. This parameter is mandatory. To discover a list of Resource Providers, use the Get-AzureRMProvider command.</maml:para>
3596+
<maml:para>Specifies a filter by ResourceProvider. This parameter is mandatory. To discover a list of Resource Providers, use the Get-AzureRMResourceProvider command.</maml:para>
35973597
</maml:description>
35983598
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
35993599
</command:parameter>

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Microsoft.Azure.Commands.OperationalInsights.dll-Help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@
20532053
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
20542054
<!--Generated by PS Cmdlet Help Editor-->
20552055
<command:details>
2056-
<command:name>Get-AzureRMProvider</command:name>
2056+
<command:name>Get-AzureRMResourceProvider</command:name>
20572057
<maml:description>
20582058
<maml:para />
20592059
</maml:description>

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/MoveResourceTest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Test-MoveAzureResource
2727
$providerNamespace = "Providers.Test"
2828
$resourceType = $providerNamespace + "/statefulResources"
2929

30-
Register-AzureRMProvider -ProviderNamespace $providerNamespace -Force
30+
Register-AzureRMResourceProvider -ProviderNamespace $providerNamespace -Force
3131
New-AzureRMResourceGroup -Name $sourceResourceGroupName -Location $location -Force
3232
New-AzureRMResourceGroup -Name $destinationResourceGroupName -Location $location -Force
3333
$resource1 = New-AzureRMResource -Name $testResourceName1 -Location $location -Tags @{Name = "testtag"; Value = "testval"} -ResourceGroupName $sourceResourceGroupName -ResourceType $resourceType -PropertyObject @{"administratorLogin" = "adminuser"; "administratorLoginPassword" = "P@ssword1"} -ApiVersion $apiversion -Force

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ProviderTests.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,33 @@
1818
#>
1919
function Test-AzureProvider
2020
{
21-
$defaultProviders = Get-AzureRMProvider
21+
$defaultProviders = Get-AzureRMResourceProvider
2222

2323
Assert-True { $defaultProviders.Length -gt 0 }
2424

25-
$allProviders = Get-AzureRMProvider -ListAvailable
25+
$allProviders = Get-AzureRMResourceProvider -ListAvailable
2626

2727
Assert-True { $allProviders.Length -gt $defaultProviders.Length }
2828

29-
Register-AzureRMProvider -ProviderName "Microsoft.ApiManagement" -Force
29+
Register-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement" -Force
3030

3131
$endTime = [DateTime]::UtcNow.AddMinutes(5)
3232

33-
while ([DateTime]::UtcNow -lt $endTime -and @(Get-AzureRMProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -ne "Registered")
33+
while ([DateTime]::UtcNow -lt $endTime -and @(Get-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -ne "Registered")
3434
{
3535
[Microsoft.WindowsAzure.Commands.Utilities.Common.TestMockSupport]::Delay(1000)
3636
}
3737

38-
Assert-True { @(Get-AzureRMProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -eq "Registered" }
38+
Assert-True { @(Get-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -eq "Registered" }
3939

40-
Unregister-AzureRMProvider -ProviderName "Microsoft.ApiManagement" -Force
40+
Unregister-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement" -Force
4141

42-
while ([DateTime]::UtcNow -lt $endTime -and @(Get-AzureRMProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -ne "Unregistered")
42+
while ([DateTime]::UtcNow -lt $endTime -and @(Get-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -ne "Unregistered")
4343
{
4444
[Microsoft.WindowsAzure.Commands.Utilities.Common.TestMockSupport]::Delay(1000)
4545
}
4646

47-
Assert-True { @(Get-AzureRMProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -eq "Unregistered" }
47+
Assert-True { @(Get-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement").RegistrationState -eq "Unregistered" }
4848
}
4949

5050
<#

src/ResourceManager/Resources/Commands.Resources/Microsoft.Azure.Commands.Resources.dll-Help.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,23 +1043,23 @@ C:\&gt;New-AzureRMResource -Name MyWebSite -Location &apos;North Central US&apos
10431043
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
10441044
<!--Generated by PS Cmdlet Help Editor-->
10451045
<command:details>
1046-
<command:name>Get-AzureRMProvider</command:name>
1046+
<command:name>Get-AzureRMResourceProvider</command:name>
10471047
<maml:description>
10481048
<maml:para />
10491049
</maml:description>
10501050
<maml:copyright>
10511051
<maml:para />
10521052
</maml:copyright>
10531053
<command:verb>Get</command:verb>
1054-
<command:noun>AzureProvider</command:noun>
1054+
<command:noun>AzureRMResourceProvider</command:noun>
10551055
<dev:version />
10561056
</command:details>
10571057
<maml:description>
10581058
<maml:para />
10591059
</maml:description>
10601060
<command:syntax>
10611061
<command:syntaxItem>
1062-
<maml:name>Get-AzureRMProvider</maml:name>
1062+
<maml:name>Get-AzureRMResourceProvider</maml:name>
10631063
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
10641064
<maml:name>ListAvailable</maml:name>
10651065
<maml:description>
@@ -1076,7 +1076,7 @@ C:\&gt;New-AzureRMResource -Name MyWebSite -Location &apos;North Central US&apos
10761076
</command:parameter>
10771077
</command:syntaxItem>
10781078
<command:syntaxItem>
1079-
<maml:name>Get-AzureRMProvider</maml:name>
1079+
<maml:name>Get-AzureRMResourceProvider</maml:name>
10801080
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
10811081
<maml:name>ProviderNamespace</maml:name>
10821082
<maml:description>
@@ -6906,23 +6906,23 @@ PS C:\&gt; New-AzureRMRoleDefinition -Role $roleDef</dev:code>
69066906
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
69076907
<!--Generated by PS Cmdlet Help Editor-->
69086908
<command:details>
6909-
<command:name>Register-AzureRMProvider</command:name>
6909+
<command:name>Register-AzureRMResourceProvider</command:name>
69106910
<maml:description>
69116911
<maml:para />
69126912
</maml:description>
69136913
<maml:copyright>
69146914
<maml:para />
69156915
</maml:copyright>
69166916
<command:verb>Register</command:verb>
6917-
<command:noun>AzureProvider</command:noun>
6917+
<command:noun>AzureRMResourceProvider</command:noun>
69186918
<dev:version />
69196919
</command:details>
69206920
<maml:description>
69216921
<maml:para />
69226922
</maml:description>
69236923
<command:syntax>
69246924
<command:syntaxItem>
6925-
<maml:name>Register-AzureRMProvider</maml:name>
6925+
<maml:name>Register-AzureRMResourceProvider</maml:name>
69266926
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
69276927
<maml:name>ProviderNamespace</maml:name>
69286928
<maml:description>
@@ -10530,23 +10530,23 @@ PS C:\&gt;Test-AzureResourceGroupTemplate -ResourceGroupName ContosoLabsRG -Gall
1053010530
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
1053110531
<!--Generated by PS Cmdlet Help Editor-->
1053210532
<command:details>
10533-
<command:name>Unregister-AzureRMProvider</command:name>
10533+
<command:name>Unregister-AzureRMResourceProvider</command:name>
1053410534
<maml:description>
1053510535
<maml:para />
1053610536
</maml:description>
1053710537
<maml:copyright>
1053810538
<maml:para />
1053910539
</maml:copyright>
1054010540
<command:verb>Unregister</command:verb>
10541-
<command:noun>AzureProvider</command:noun>
10541+
<command:noun>AzureRMResourceProvider</command:noun>
1054210542
<dev:version />
1054310543
</command:details>
1054410544
<maml:description>
1054510545
<maml:para />
1054610546
</maml:description>
1054710547
<command:syntax>
1054810548
<command:syntaxItem>
10549-
<maml:name>Unregister-AzureRMProvider</maml:name>
10549+
<maml:name>Unregister-AzureRMResourceProvider</maml:name>
1055010550
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
1055110551
<maml:name>ProviderNamespace</maml:name>
1055210552
<maml:description>

src/ResourceManager/Resources/Commands.Resources/Providers/GetAzureProviderCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.Providers
2121
/// <summary>
2222
/// Get an existing resource.
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.Get, "AzureRMProvider", DefaultParameterSetName = GetAzureProviderCmdlet.ListAvailableParameterSet), OutputType(typeof(PSResourceProvider))]
24+
[Cmdlet(VerbsCommon.Get, "AzureRMResourceProvider", DefaultParameterSetName = GetAzureProviderCmdlet.ListAvailableParameterSet), OutputType(typeof(PSResourceProvider))]
2525
public class GetAzureProviderCmdlet : ResourcesBaseCmdlet
2626
{
2727
/// <summary>

src/ResourceManager/Resources/Commands.Resources/Providers/RegisterAzureProviderCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.Resources
2222
/// <summary>
2323
/// Register the previewed features of a certain azure resource provider.
2424
/// </summary>
25-
[Cmdlet(VerbsLifecycle.Register, "AzureRMProvider"), OutputType(typeof(PSResourceProvider))]
25+
[Cmdlet(VerbsLifecycle.Register, "AzureRMResourceProvider"), OutputType(typeof(PSResourceProvider))]
2626
public class RegisterAzureProviderCmdlet : ResourcesBaseCmdlet
2727
{
2828
/// <summary>

src/ResourceManager/Resources/Commands.Resources/Providers/UnregisterAzureProviderCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.Resources
2222
/// <summary>
2323
/// Un-registers the resource provider from the current subscription.
2424
/// </summary>
25-
[Cmdlet(VerbsLifecycle.Unregister, "AzureRMProvider"), OutputType(typeof(List<PSResourceProvider>))]
25+
[Cmdlet(VerbsLifecycle.Unregister, "AzureRMResourceProvider"), OutputType(typeof(List<PSResourceProvider>))]
2626
public class UnregisterAzureProviderCmdlet : ResourcesBaseCmdlet
2727
{
2828
/// <summary>

0 commit comments

Comments
 (0)