Skip to content

Rename AzureRMProvider to AzureRMResourceProvider #937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3575,7 +3575,7 @@ The value must be earlier than StartTime, but not more than 15 days.</maml:para>
<command:details>
<command:name>Get-AzureRMResourceProviderLog</command:name>
<maml:description>
<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>
<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>
</maml:description>
<maml:copyright>
<maml:para />
Expand All @@ -3593,7 +3593,7 @@ The value must be earlier than StartTime, but not more than 15 days.</maml:para>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="0">
<maml:name>ResourceProvider</maml:name>
<maml:description>
<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>
<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>
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@
<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">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Get-AzureRMProvider</command:name>
<command:name>Get-AzureRMResourceProvider</command:name>
<maml:description>
<maml:para />
</maml:description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Test-MoveAzureResource
$providerNamespace = "Providers.Test"
$resourceType = $providerNamespace + "/statefulResources"

Register-AzureRMProvider -ProviderNamespace $providerNamespace -Force
Register-AzureRMResourceProvider -ProviderNamespace $providerNamespace -Force
New-AzureRMResourceGroup -Name $sourceResourceGroupName -Location $location -Force
New-AzureRMResourceGroup -Name $destinationResourceGroupName -Location $location -Force
$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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@
#>
function Test-AzureProvider
{
$defaultProviders = Get-AzureRMProvider
$defaultProviders = Get-AzureRMResourceProvider

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

$allProviders = Get-AzureRMProvider -ListAvailable
$allProviders = Get-AzureRMResourceProvider -ListAvailable

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

Register-AzureRMProvider -ProviderName "Microsoft.ApiManagement" -Force
Register-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement" -Force

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

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

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

Unregister-AzureRMProvider -ProviderName "Microsoft.ApiManagement" -Force
Unregister-AzureRMResourceProvider -ProviderName "Microsoft.ApiManagement" -Force

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

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

<#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1043,23 +1043,23 @@ C:\&gt;New-AzureRMResource -Name MyWebSite -Location &apos;North Central US&apos
<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">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Get-AzureRMProvider</command:name>
<command:name>Get-AzureRMResourceProvider</command:name>
<maml:description>
<maml:para />
</maml:description>
<maml:copyright>
<maml:para />
</maml:copyright>
<command:verb>Get</command:verb>
<command:noun>AzureProvider</command:noun>
<command:noun>AzureRMResourceProvider</command:noun>
<dev:version />
</command:details>
<maml:description>
<maml:para />
</maml:description>
<command:syntax>
<command:syntaxItem>
<maml:name>Get-AzureRMProvider</maml:name>
<maml:name>Get-AzureRMResourceProvider</maml:name>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>ListAvailable</maml:name>
<maml:description>
Expand All @@ -1076,7 +1076,7 @@ C:\&gt;New-AzureRMResource -Name MyWebSite -Location &apos;North Central US&apos
</command:parameter>
</command:syntaxItem>
<command:syntaxItem>
<maml:name>Get-AzureRMProvider</maml:name>
<maml:name>Get-AzureRMResourceProvider</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>ProviderNamespace</maml:name>
<maml:description>
Expand Down Expand Up @@ -6906,23 +6906,23 @@ PS C:\&gt; New-AzureRMRoleDefinition -Role $roleDef</dev:code>
<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">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Register-AzureRMProvider</command:name>
<command:name>Register-AzureRMResourceProvider</command:name>
<maml:description>
<maml:para />
</maml:description>
<maml:copyright>
<maml:para />
</maml:copyright>
<command:verb>Register</command:verb>
<command:noun>AzureProvider</command:noun>
<command:noun>AzureRMResourceProvider</command:noun>
<dev:version />
</command:details>
<maml:description>
<maml:para />
</maml:description>
<command:syntax>
<command:syntaxItem>
<maml:name>Register-AzureRMProvider</maml:name>
<maml:name>Register-AzureRMResourceProvider</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>ProviderNamespace</maml:name>
<maml:description>
Expand Down Expand Up @@ -10530,23 +10530,23 @@ PS C:\&gt;Test-AzureResourceGroupTemplate -ResourceGroupName ContosoLabsRG -Gall
<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">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Unregister-AzureRMProvider</command:name>
<command:name>Unregister-AzureRMResourceProvider</command:name>
<maml:description>
<maml:para />
</maml:description>
<maml:copyright>
<maml:para />
</maml:copyright>
<command:verb>Unregister</command:verb>
<command:noun>AzureProvider</command:noun>
<command:noun>AzureRMResourceProvider</command:noun>
<dev:version />
</command:details>
<maml:description>
<maml:para />
</maml:description>
<command:syntax>
<command:syntaxItem>
<maml:name>Unregister-AzureRMProvider</maml:name>
<maml:name>Unregister-AzureRMResourceProvider</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>ProviderNamespace</maml:name>
<maml:description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.Providers
/// <summary>
/// Get an existing resource.
/// </summary>
[Cmdlet(VerbsCommon.Get, "AzureRMProvider", DefaultParameterSetName = GetAzureProviderCmdlet.ListAvailableParameterSet), OutputType(typeof(PSResourceProvider))]
[Cmdlet(VerbsCommon.Get, "AzureRMResourceProvider", DefaultParameterSetName = GetAzureProviderCmdlet.ListAvailableParameterSet), OutputType(typeof(PSResourceProvider))]
public class GetAzureProviderCmdlet : ResourcesBaseCmdlet
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.Resources
/// <summary>
/// Register the previewed features of a certain azure resource provider.
/// </summary>
[Cmdlet(VerbsLifecycle.Register, "AzureRMProvider"), OutputType(typeof(PSResourceProvider))]
[Cmdlet(VerbsLifecycle.Register, "AzureRMResourceProvider"), OutputType(typeof(PSResourceProvider))]
public class RegisterAzureProviderCmdlet : ResourcesBaseCmdlet
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.Resources
/// <summary>
/// Un-registers the resource provider from the current subscription.
/// </summary>
[Cmdlet(VerbsLifecycle.Unregister, "AzureRMProvider"), OutputType(typeof(List<PSResourceProvider>))]
[Cmdlet(VerbsLifecycle.Unregister, "AzureRMResourceProvider"), OutputType(typeof(List<PSResourceProvider>))]
public class UnregisterAzureProviderCmdlet : ResourcesBaseCmdlet
{
/// <summary>
Expand Down