-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser install instructions invalid #415
Browser install instructions invalid #415
Comments
I've had a go at moving to to have the following
And install these additional packages:
But I get an error from the browser as Sorry if I've missed a section of docs which picks this up |
So it looks like the install instructions pull down the npm package for nodejs not the isomorphic sdk. I picked up the drop.zip from the releases on the repo and then pulled the source from there along with the three npm packages install above and this seems to be working. The following now works <!-- AzureSDK Import -->
<script src="node_modules/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="azure-containerinstance/dist/arm-containerinstance.js"></script>
<script type="text/javascript">
var ws = "";
var token = "tokenhere";
var subscriptionId = "subidhere"
createACIInstance(token, subscriptionId);
function createACIInstance(token, subscriptionId) {
const creds = new msRest.TokenCredentials(token);
const client = new Azure.ArmContainerinstance.ContainerInstanceManagementClient(creds, subscriptionId);
client.containerGroups.list().then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
}
</script> Is it worth PRing some updated instructions or are the pages autogen'd? Looking at this in relation to the other issues I raised #414 and #413 have I stumbled into a repository in a 'in-progress' state? If so it would be great to call this out in the |
These are really good points. Thanks for the feedback. We'll update our package README.md files so that they better explain which packages you need to install. |
I've added a couple of tasks that should resolve this issue. |
Change skip() calls to warning
When using the
containerinstance
component from the browser it appears that the install instructions listed in the resourcesreadme
are no longer valid.results in:
The text was updated successfully, but these errors were encountered: