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

Adds a resource provider manifest to the azure stack 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>]

Description

The Add-AzureRMResourceProviderRegistration cmdlet adds a resource provider manifest to the azure stack resource manager. This is needed to register any new resource provider with resource manager.

Examples

Example 1: Register the resource provider manifest for the specified namespace

# 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

$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

This example registers the resource provider manifest for the "Microsoft.Sql.Admin" namespace, which is specified in the $adminNamespace variable.

Required Parameters

-ArmLocation

Specifies the location of the resource manager in the Azure stack.

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

Specifies the name to be displayed to the user for the resource provider manifest.

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

Specifies the name of the extension that is associated with the resource provider manifest.

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

Specifies URI of the extension that is associated with the resource provider manifest.

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

Specifies the name of the resource provider manifest.

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

Specifies the namespace associated with the resource provider manifest.

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

Specifies the location of the resource provider.

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

Specifies the 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

Specifies the 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

Specifies a JSON string containing the names and URIs of the extensions that are 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

Specifies how this cmdlet responds to an information event.

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

Specifies a variable that is used for storing an informational message.

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

Specifies a variable that stores the value of the current pipeline element.

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

Outputs

Microsoft.AzureStack.Management.Models.ProviderRegistrationModel