Skip to content

Instantly share code, notes, and snippets.

@Lutando
Created December 9, 2019 15:01
Show Gist options
  • Save Lutando/36685975dbeff1ced1bc1b187e1152fb to your computer and use it in GitHub Desktop.
Save Lutando/36685975dbeff1ced1bc1b187e1152fb to your computer and use it in GitHub Desktop.
# increment the revision based off the current revision number
$newRevision = [int]$apiSpecification.ApiRevision + 1;
# now lets create an api revision
$newApiRevisionParams = @{
Context = $apiManagementContext
ApiId = $apiSpecification.ApiId
ApiRevision = $newRevision
SourceApiRevision = $apiSpecification.ApiRevision
}
$newApiRevision = New-AzApiManagementApiRevision @newApiRevisionParams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment