Code Monkey home page Code Monkey logo

azure's People

Contributors

eduherminio avatar jrudlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

azure's Issues

Get the error to change on New-AzDisk line -144

When i trying to runn command "$NewManagedDisk = New-AzDisk -ResourceGroupName $resourceGroupName -DiskName $NewDiskName -Disk $diskConfig". I am getting the error.
New-AzDisk: Changing property 'sourceUri' is not allowed for existing disk 'diskName'.
ErrorCode: BadRequest
ErrorMessage: Changing property 'sourceUri' is not allowed for existing disk 'diskName'.
ErrorTarget:
StatusCode: 400
ReasonPhrase: Bad Request
OperationID : b19610a7-e2f3-4408-9ffb-6ff631e53d50

Issue connecting to share

So i followed this guide https://jrudlin.github.io/2019-09-02-windows-virtual-desktop-azure-devops-ci-cd-packer-build-and-release/ and its building the image fine, except that it gives an error when connecting to the Azure file Share through powershell.

https://pastebin.com/yu6P1Uq2 This is my config.json file

The error i am getting:
==> azure-arm: Provisioning with Powershell...
==> azure-arm: Provisioning with powershell script: C:\Users\VSSADM~1\AppData\Local\Temp\powershell-provisioner098073359
==> azure-arm: AppInstallsStorageAccountName : The term 'AppInstallsStorageAccountName' is not recognized as the name of a cmdlet,
==> azure-arm: function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
==> azure-arm: At C:\Windows\Temp\script-60911f9d-8fde-ee90-1cbb-1aeff1ba219d.ps1:3 char:20
==> azure-arm: + $Usr='AzureAD'+"$(AppInstallsStorageAccountName)"
==> azure-arm: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm: + CategoryInfo : ObjectNotFound: (AppInstallsStorageAccountName:String) [], ParentContainsErrorRecordException
==> azure-arm: + FullyQualifiedErrorId : CommandNotFoundException

Any clue where i misconfigured something?

Storage account name becomes too long

I suggest changing 39 line in https://github.com/jrudlin/Azure/blob/master/General/Shrink-AzDisk.ps1
$storageAccountName = "sashrinkddisk" + ($($VMName -replace '[^a-zA-Z0-9]', '')).ToLower()
to
$storageAccountName = "shrink" + [system.guid]::NewGuid().tostring().replace('-','').substring(1,18)
to account for errors like "....is not a valid storage account name. Storage account name must be
between 3 and 24 characters in length and use numbers and lower-case letters only."

Shrink Data disks

Good day,

What modifications are required to the script to shrink data disks

Regards
Suraj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.