Add-​Azure​RM​Resource​Provider​Registration

This cmdlet adds a resource provider manifest to azure stack resource manager. This is needed to register any new resource provider with resource manager.

Syntax

Add-AzureRMResourceProviderRegistration
   -ArmLocation <String>
   -DisplayName <String>
   -ExtensionName <String>
   -ExtensionUri <Uri>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -Namespace <String>
   [-PipelineVariable <String>]
   -ProviderLocation <String>
   -ResourceGroup <String>
   -ResourceManagerType <ResourceManagerType>
   -ResourceTypes <String>
   [<CommonParameters>]
Add-AzureRMResourceProviderRegistration
   -ArmLocation <String>
   -DisplayName <String>
   [-Extensions <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -Namespace <String>
   [-PipelineVariable <String>]
   -ProviderLocation <String>
   -ResourceGroup <String>
   -ResourceManagerType <ResourceManagerType>
   -ResourceTypes <String>
   [<CommonParameters>]

Examples

Example 1:

Description

-----------

The following example registers the resource provider manifest for a namespace providing the details needed

Make sure to provide the resource types json of the resource provider being registered

        $adminResourceTypesFile="$PSScriptRoot\AdminResourceTypes.json"
        $adminNamespace="Microsoft.Sql.Admin"
        $adminJson = Get-Content $adminResourceTypesFile -Raw | ConvertFrom-Json
        $adminJson | % { $_.endpoints\[0\].endpointUri="https://${VmName}:30010" }
        $adminJsonStr = $adminJson | ConvertTo-Json -Depth 4<br /><br />            $location = "local"
        Add-AzureRMResourceProviderRegistration -Name $adminNamespace \`
        -Namespace $adminNamespace \`
        -ResourceGroup System \`
        -ArmLocation $location \`
        -ProviderLocation $location \`
        -DisplayName $adminNamespace \`
        -ExtensionName "SqlAdminExtension" \`
        -ExtensionUri "https://${VmName}:13002"  \`
        -ResourceManagerType Admin  \`
        -ResourceTypes $adminJsonStr

Required Parameters

-ArmLocation

{{Fill ArmLocation Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName

@{Text=}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExtensionName

Extension name associated with the resource provider manifest

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExtensionUri

Extension URI associated with the resource provider manifest

Type:Uri
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Resource provider manifest name

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Namespace

Namespace associated with the resource provider manifest

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProviderLocation

Location of the resource provider

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroup

Resource group under which the resource provider manifest is created

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceManagerType

{{Fill ResourceManagerType Description}}

Type:ResourceManagerType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceTypes

Json string describing the resource provider manifest.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Extensions

Json string specifying the extension names and extension URIs associated with the resource provider manifest. This parameter is used only when there are multiple parameters associated with a single resource provider manifest

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationAction

Not SpecifiedThe following values are permitted for this object type.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Not Specified

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PipelineVariable

Not Specified

Type:String
Aliases:pv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.AzureStack.Management.Models.ProviderRegistrationModel