Initialize-AzNewRelicSaaSResource
This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus .
Resolve the token to get the SaaS resource ID and activate the SaaS resource
Syntax
ActivateExpanded (Default)
Initialize-AzNewRelicSaaSResource
-PublisherId <String>
-SaasGuid <String>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Activate
Initialize-AzNewRelicSaaSResource
-Request <IActivateSaaSParameterRequest>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ActivateViaJsonFilePath
Initialize-AzNewRelicSaaSResource
-JsonFilePath <String>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ActivateViaJsonString
Initialize-AzNewRelicSaaSResource
-JsonString <String>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Resolve the token to get the SaaS resource ID and activate the SaaS resource
Examples
Example 1: Initialize SaaS resource with publisher ID and SaaS GUID
Initialize-AzNewRelicSaaSResource -PublisherId "newrelicinc1234567891234" -SaasGuid "12345678-1234-1234-1234-123456789abc"
SaasResourceId : /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg-newrelic/providers/NewRelic.Observability/monitors/newrelic-monitor-01/saasResources/12345678-1234-1234-1234-123456789abc
SaasResourceName : newrelic-monitor-01
SaasResourceState : Active
MarketplaceSubscriptionId: 12345678-1234-1234-1234-123456789abc
PlanId : newrelicpaygtestplan2@123456789123456@PUBIDnewrelicinc1234567891234
Initialize a NewRelic SaaS resource using the publisher ID and SaaS GUID to activate the marketplace subscription
Example 2: Initialize SaaS resource using a request object
$saasRequest = [Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.ActivateSaaSParameterRequest]@{
PublisherId = "newrelicinc1234567891234"
SaasGuid = "12345678-1234-1234-1234-123456789abc"
}
Initialize-AzNewRelicSaaSResource -Request $saasRequest
SaasResourceId : /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg-newrelic/providers/NewRelic.Observability/monitors/newrelic-monitor-01/saasResources/12345678-1234-1234-1234-123456789abc
SaasResourceName : newrelic-monitor-01
SaasResourceState : Active
MarketplaceSubscriptionId: 12345678-1234-1234-1234-123456789abc
PlanId : newrelicpaygtestplan2@123456789123456@PUBIDnewrelicinc1234567891234
Initialize a NewRelic SaaS resource by providing a request object containing the publisher ID and SaaS GUID
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonFilePath
Path of Json file supplied to the Activate operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ActivateViaJsonFilePath
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JsonString
Json string supplied to the Activate operation
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ActivateViaJsonString
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-PublisherId
Publisher Id for NewRelic resource
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ActivateExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Request
SaaS guid & PublishedId for Activate and Validate SaaS Resource
Parameter properties
Parameter sets
Activate
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-SaasGuid
SaaS guid for Activate and Validate SaaS Resource
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ActivateExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The ID of the target subscription.
Parameter properties
Type: String
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs