File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
Tasks/AzureResourceManagerTemplateDeploymentV3
Strings/resources.resjson/en-US Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 8181 "loc.messages.LogDeploymentName": "Deployment name is %s",
8282 "loc.messages.ResourceGroupNameNotProvided": "Resource Group name should be provided",
8383 "loc.messages.LocationNotProvided": "Location is required for deployment",
84- "loc.messages.ARMServiceConnectionScope": "ARM Service Conection deployment scope - %s"
84+ "loc.messages.ARMServiceConnectionScope": "ARM Service Conection deployment scope - %s",
85+ "loc.messages.CompleteDeploymentModeNotSupported": "Deployment mode 'Complete' is not supported for deployment at '%s' scope"
8586}
Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ export class TaskParameters {
8686 throw new Error ( tl . loc ( "LocationNotProvided" ) ) ;
8787 }
8888
89+ //Deployment mode
90+ this . deploymentMode = tl . getInput ( "deploymentMode" ) ;
91+ if ( ! ! this . deploymentMode && this . deploymentMode === "Complete" && this . deploymentScope != "Resource Group" ) {
92+ throw new Error ( tl . loc ( "CompleteDeploymentModeNotSupported" , this . deploymentScope ) ) ;
93+ }
8994
9095 this . templateLocation = tl . getInput ( "templateLocation" ) ;
9196 if ( this . templateLocation === "Linked artifact" ) {
@@ -98,7 +103,6 @@ export class TaskParameters {
98103 this . overrideParameters = tl . getInput ( "overrideParameters" ) ;
99104 this . outputVariable = tl . getInput ( "outputVariable" ) ;
100105 this . deploymentName = tl . getInput ( "deploymentName" ) ;
101- this . deploymentMode = tl . getInput ( "deploymentMode" ) ;
102106 this . credentials = await this . getARMCredentials ( this . connectedService ) ;
103107 this . deploymentOutputs = tl . getInput ( "deploymentOutputs" ) ;
104108 this . addSpnToEnvironment = tl . getBoolInput ( "addSpnToEnvironment" , false ) ;
Original file line number Diff line number Diff line change 1515 "version" : {
1616 "Major" : 3 ,
1717 "Minor" : 0 ,
18- "Patch" : 0
18+ "Patch" : 1
1919 },
2020 "preview" : " true" ,
2121 "demands" : [],
294294 "LogDeploymentName" : " Deployment name is %s" ,
295295 "ResourceGroupNameNotProvided" : " Resource Group name should be provided" ,
296296 "LocationNotProvided" : " Location is required for deployment" ,
297- "ARMServiceConnectionScope" : " ARM Service Conection deployment scope - %s"
297+ "ARMServiceConnectionScope" : " ARM Service Conection deployment scope - %s" ,
298+ "CompleteDeploymentModeNotSupported" : " Deployment mode 'Complete' is not supported for deployment at '%s' scope"
298299 }
299300}
Original file line number Diff line number Diff line change 1515 "version" : {
1616 "Major" : 3 ,
1717 "Minor" : 0 ,
18- "Patch" : 0
18+ "Patch" : 1
1919 },
2020 "preview" : " true" ,
2121 "demands" : [],
294294 "LogDeploymentName" : " ms-resource:loc.messages.LogDeploymentName" ,
295295 "ResourceGroupNameNotProvided" : " ms-resource:loc.messages.ResourceGroupNameNotProvided" ,
296296 "LocationNotProvided" : " ms-resource:loc.messages.LocationNotProvided" ,
297- "ARMServiceConnectionScope" : " ms-resource:loc.messages.ARMServiceConnectionScope"
297+ "ARMServiceConnectionScope" : " ms-resource:loc.messages.ARMServiceConnectionScope" ,
298+ "CompleteDeploymentModeNotSupported" : " ms-resource:loc.messages.CompleteDeploymentModeNotSupported"
298299 }
299300}
You can’t perform that action at this time.
0 commit comments