Skip to content

Instantly share code, notes, and snippets.

@Lutando
Created December 9, 2019 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lutando/12e10c3be05ea91a1313e9f64c8e9341 to your computer and use it in GitHub Desktop.
Save Lutando/12e10c3be05ea91a1313e9f64c8e9341 to your computer and use it in GitHub Desktop.
# we make a new schema
$newApiManagementSchemaParams = @{
Context = $ApiManagementContext
ApiId = $newApiRevision.ApiId
SchemaDocumentContentType = "application/json"
SchemaDocumentFilePath = $apiSpecificationPath
}
New-AzApiManagementApiSchema @newApiManagementSchemaParams
# now lets create an api release for this revision
# without releasing the revision, no external
# consumer will be able to see the set revision
$newApiManagementApiReleaseParams = @{
Context = $apiManagementContext
ApiId = $apiSpecification.ApiId
ApiRevision = $newApiRevision.ApiRevision
}
New-AzApiManagementApiRelease @newApiManagementApiReleaseParams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment