-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Feature request: Add support for EmptyDir in New-AzContainerGroup command #17410
Comments
@BethanyZhou , could you recollect the reason that we don't support Empty Dir? Is it incorrect on api spec? |
The type of EmptyDir is defined as object in Swagger. In We consider the quality of this parameter may be not high as expected. That's why we hide EmptyDir. |
Thanks for your comments. A couple of thoughts related to them: Question 1
Question 2 Thanks! |
Really appreciate for your suggestions. I will try to pass an empty object to azure rest api first and verify whether it will work as expect. After that, I will update documentation page accordingly. |
@BethanyZhou, thanks for giving it a try! Do you have any idea of when you will be able to try? And if it works, when can it be expected to be rolled out in a future release? I am asking this because I am depending on the EmptyDir feature in what I am building, and it helps me for my planning if I can have a rough idea about timelines. Many thanks! |
Sorry for late response. We are investigating the way to send -EmptyDir as "{}" to backend. In our previous behavior, we treat "{}" as null. And we need confirm with service team to know is there any impact if we send all "{}"s to backend. The estimated time is unclear by far. |
After investigated, we are unable to support sending -EmptyDir as "{}" to backend. @CaptainFanZzz , could you help update the doc for New-AzContainerGroupVolumeObject to clarify EmptyDir is not supported? |
Thank you for verifying this. It is a real pity this can not be supported in ACI. Especially since it is supported in other components such as Azure Resource Manager template. Is the reason you can't do it a limit on your side or is it a limit in the rest api? |
I'm sorry for this pity. And I'm happy you have Azure Resource Manager template to workaround this issue. The limitation is in our side and probably in rest api side.
We are still investigating. Our next step depends on the investigation results. Thinking it wouldn't be a short term work, so we have to clarify EmptyDir is not supported by far. |
Unfortunately I can't use ARM templates for my implementations, I am dependent on it being added in Powershell (for background, I am starting ACI instances in azure functions using Powershell). So since you are still investigating, I suggest we do the following:
Does that sound ok to you? |
Sure, many thanks for your suggestion. |
Thanks for the update! PR looks great! |
It will be available on April 26. Close it now. |
Description
I am trying to create ACI with the New-AzContainerGroup command.
I am trying to create a container with an EmptyDir volume mapped, but I can't get it to work.
I looked at the volume mount example at https://docs.microsoft.com/en-us/powershell/module/az.containerinstance/new-azcontainergroup?view=azps-7.3.0#example-6--create-a-container-group-that-mounts-azure-file-volume
However, I found an issue that says that the example is not complete (#17123).
I therefore tried to do the mount with that example as a base instead but I can't get it to work for EmptyDir.
That generates the following error:
So either I am not passing the necessary parameters or not doing this right. Can anyone provide a working example?
Related observation - EmptyDir not implemented?
Before posting this issue I also did a search in the repo, and at a first glance it looks like the EmptyDir code is not actually implemented. Or am I misunderstanding the code? See the code line in question here:
azure-powershell/src/ContainerInstance/custom/New-AzContainerGroupVolumeObject.ps1
Line 43 in 671452f
Script or Debug output
No response
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: