< Back

New-AzureRmManagedApplicationDefinition

Tue Jan 29, 2019 10:05 pm

NAME New-AzureRmManagedApplicationDefinition



SYNOPSIS

Creates a managed application definition.





SYNTAX

New-AzureRmManagedApplicationDefinition [-ApiVersion <String>] -Authorization <String[]> [-CreateUiDefinition <String>] [-DefaultProfile

<IAzureContextContainer>] -Description <String> -DisplayName <String> -Location <String> -LockLevel {None | CanNotDelete | ReadOnly}

[-MainTemplate <String>] -Name <String> [-PackageFileUri <String>] [-Pre] -ResourceGroupName <String> [-Tag <Hashtable>] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The New-AzureRmManagedApplicationDefinition cmdlet creates a managed application definition.





PARAMETERS

-ApiVersion <String>

When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the

latest available.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Authorization <String[]>

The managed application definition authorization. Comma separated authorization pairs in a format of <principalId>:<roleDefinitionId>



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-CreateUiDefinition <String>

The managed application definition create ui definition



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Description <String>

The managed application definition description.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DisplayName <String>

The managed application definition display name.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Location <String>

The resource location.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-LockLevel <ApplicationLockLevel>

The level of the lock for managed application definition.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-MainTemplate <String>

The managed application definition main template



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

The managed application definition name.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PackageFileUri <String>

The managed application definition package file uri.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Pre [<SwitchParameter>]

When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

The resource group name.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tag <Hashtable>

A hashtable which represents resource tags.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationLockLevel System.String[] System.Collections.Hashtable





OUTPUTS

System.Management.Automation.PSObject







NOTES









Example 1



PS> New-AzureRmManagedApplicationDefinition -Name myAppDef -ResourceGroupName myRG -DisplayName test -Description "sample description" -Location

westus -LockLevel ReadOnly -PackageFileUri https://sample.blob.core.windows.net/fi ... ackage.zip -Authorization <principalId:roleDefinitionId>



This command creates a managed application definition







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... definition