< Back
New-AzureRmApiManagementContext
Post
NAME New-AzureRmApiManagementContext
SYNOPSIS
Creates an instance of PsAzureApiManagementContext.
SYNTAX
New-AzureRmApiManagementContext [-DefaultProfile <IAzureContextContainer>] -ResourceGroupName <String> -ServiceName <String> [<CommonParameters>]
DESCRIPTION
The New-AzureRmApiManagementContext cmdlet creates an instance of PsAzureApiManagementContext . The context is used for all of the API Management
service cmdlets.
PARAMETERS
-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
-ResourceGroupName <String>
Specifies the name of the resource group under which an API Management service is deployed.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ServiceName <String>
Specifies the name of the deployed API Management service.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
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
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsAzureApiManagementContext
NOTES
Example 1: Create a PsApiManagementContext instance
PS C:\\>$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "ContosoResources" -ServiceName "Contoso"
This command creates an instance of PsApiManagementContext .
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... entcontext
SYNOPSIS
Creates an instance of PsAzureApiManagementContext.
SYNTAX
New-AzureRmApiManagementContext [-DefaultProfile <IAzureContextContainer>] -ResourceGroupName <String> -ServiceName <String> [<CommonParameters>]
DESCRIPTION
The New-AzureRmApiManagementContext cmdlet creates an instance of PsAzureApiManagementContext . The context is used for all of the API Management
service cmdlets.
PARAMETERS
-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
-ResourceGroupName <String>
Specifies the name of the resource group under which an API Management service is deployed.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ServiceName <String>
Specifies the name of the deployed API Management service.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
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
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsAzureApiManagementContext
NOTES
Example 1: Create a PsApiManagementContext instance
PS C:\\>$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "ContosoResources" -ServiceName "Contoso"
This command creates an instance of PsApiManagementContext .
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... entcontext